Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • If you quote when echoing, it shows new lines but with trailing slash: echo "$num". Commented Feb 28, 2014 at 14:42
  • 1
    If find cat -A a good intermediate for looking at this kind of thing before going to hexdump or the like. Eg echo 6^6^3 | bc | cat -A. Commented Feb 28, 2014 at 14:45
  • @fedorqui : Interesting, since that seems to be a further interpolation -- I've added a last paragraph about this. Commented Feb 28, 2014 at 14:50
  • In general, quoting while echoing is important to keep the original format. Hence, you have to trust the quoted echo when working with some text. Commented Feb 28, 2014 at 14:52
  • @fedorqui : Right, my "last paragraph" was actually a little confused on that -- of course it isn't really a "further interpolation". Did not know about this aspect of quotes vs. non-quotes, tho. Do you know of anywhere that stipulates all the transformations that occur? Commented Feb 28, 2014 at 14:56