Linux Echo命令使用总结

Posted by fishcried on July 12, 2014

参数说明

-e print escaped characters

-n suppress the newline

使用技巧

Be aware that echo command deletes any linefeeds that the output of command generates.

The $IFS(interal field separator) variable normally contains \n(linefeed) as one of its set of whitespace characters.Bash therefore splits output of command at linefeeds into arguments to echo. Then echo outputs these arguments, separated by spaces.