Hello All,
I want to add new line character to each of the line '\n'.what is the unix command i can use to do that.File is like below
a|b|c
c|d|f
Hello All,
I want to add new line character to each of the line '\n'.what is the unix command i can use to do that.File is like below
a|b|c
c|d|f
Try the following.
cat filename | sed 's/$/\\n/g' > newfilename
Many systems have a ux2dos (or unix2dos) command.
Hey,
You can use the following three commands to add a new line to a file.
echo "\n" >> file.outor
echo -e "\n" >> file.out
echo >> yourfile
Thanks