Formatting with echo command

Posted by johannix on Stack Overflow See other posts from Stack Overflow or by johannix
Published on 2010-03-11T20:14:21Z Indexed on 2010/03/11 20:19 UTC
Read the original article Hit count: 268

Filed under:
|
|
|
|

The actual situation is a bit complicated, but the issue I'm running into is that I have an echo command within an eval command. Like so:

$ eval echo 'keep   my     spacing'
keep my spacing
$ echo 'keep   my     spacing'
keep   my     spacing

I was wondering how I could keep eval from stripping my spacing so that the first command prints out the same message as the second...

© Stack Overflow or respective owner

Related posts about bash

Related posts about echo