Test if variable contains newline (POSIX) – unix.stackexchange.com 19:02 Posted by Unknown No Comments I know that some shells accept this kind of test: t() { [[ $var == *$'\n'* ]] && res=yes || res=no printf '%s ' "$res"; } var='ab cd' t var='abcd' t echo on execution: $ bash ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitLevel up abilities while using them – gaming.stackexchange.comValues of sequenced IntegerDigits lists with two fixed elements – mathematica.stackexchange.comIs a positive semidefinite matrix always non-negative? – math.stackexchange.com2way cryptography – crypto.stackexchange.comWhat is the difference between an Arcane Focus and a Component Pouch? – rpg.stackexchange.comHow should I deal with a player telling other players when and what to roll? – rpg.stackexchange.com
0 Comment to "Test if variable contains newline (POSIX) – unix.stackexchange.com"
Post a Comment