erinxocon / pyp

Automatically exported from code.google.com/p/pyp
0 stars 0 forks source link

interpreting \n as newline #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

In the examples involving echo of a newline, such as

   echo "1\n5\n10"

some systems do not interpret '\n' properly (see 
http://stackoverflow.com/questions/8467424/echo-new-line-in-bash-prints-literal-
n ), so recommend you use

   printf "1\n5\n10"

instead of 'echo', or at least use the '-e' flag when needed, like this

   echo -e "1\n5\n10"

Original issue reported on code.google.com by artsa...@gmail.com on 12 Sep 2014 at 10:06

GoogleCodeExporter commented 8 years ago
ok, thanks for the heads up.

Original comment by tobyro...@gmail.com on 9 Feb 2015 at 10:31