Monday, January 14, 2019

Unix: 'echo' remove new line character

For removing new line character in Unix echo command. Then using option "-n" do not print the trailing newline character.

echo -n "choicest word in the world is deed" > result.txt

No comments: