"echo" command is the very basic command of Linux/Unix. Most of us known this command to print whatever is being passed to it as argument. So let's revise once more if we are missing something here.
"echo" command prints its argument by single space.
print argument by single space mean it will suppress the space between its arguments.
if you want to preserver the space between them, we need to make these 3 argument to 1 by using a quote.
One more example :
** Need to remember -
* echo expect arguments to print whether they are separated by single space or multiple, it will print them with single space
* if you want to keep multiple space in argument string, make them one argument by quoting them.
No comments:
Post a Comment