Why does wc <<<"$string" show a one-byte-longer length than printf "$string" | wc? – unix.stackexchange.com 11:16 Posted by Unknown No Comments Accidentially, I found out that wc counts differently depending on how it gets the input from bash: $ s='hello' $ wc -m <<<"$s" 6 $ wc -c <<<"$s" 6 $ printf "$s" | wc -m 5 $ printf ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitMy contract is expiring and it won't be renewed yet I'm in the midst of a crucial project – workplace.stackexchange.comWhat's the opposite of "at the expense of"? – english.stackexchange.comWhy do we need so many classes in design patterns – softwareengineering.stackexchange.comIs your future tax bracket the ONLY consideration for Roth vs Traditional 401(k) accounts? – money.stackexchange.comWould being hollow solve the weight problem of giant swords? – worldbuilding.stackexchange.comHow can I give out my telephone number to my neighbors without implying anything? – interpersonal.stackexchange.com
0 Comment to "Why does wc <<<"$string" show a one-byte-longer length than printf "$string" | wc? – unix.stackexchange.com"
Post a Comment