echo
bash-3.00# echo -e '123\n456'
123
456
bash-3.00# echo -e 'test1\ntest2\n\ntest3\n'
test1
test2
test3
bash-3.00# echo -e 'test1\ntest2\n\ntest3\n' | sed '/^$/d'
test1
test2
test3
---------------
bash-3.00# echo -e '123\n456'
123
456
bash-3.00# echo '123\n456'
123\n456
Comments
Post a Comment