How can I use bash command line to add new line character at the end of file named file.txt. I tried use echo but it\'s not right. Can you show me how
file.txt
echo
With sed:
sed
sed -i '' -e '$a\' file.txt
with echo:
echo >> file.txt