3 ms·
Pretty sure nano was changing your code to echo 'this is a test' > test\n and then echo was adding the newline because you didn't specify -n.
by lexicality 8y ago
Pretty sure nano was changing your code to
echo 'this is a test' > test\n
and then echo was adding the newline because you didn't specify -n.
- pushpop 8y ago...and also echo 'this is a test\n' doesn't produce an additional new line because -e wasn't specified.