Get rid of “\\n” in files

By: | Comments: 3 Comments

Posted in categories: Computer Tips

cat fn.txt | tr ‘\\\n’ ‘  ‘ > fn.1.txt
sed -i ‘s/  //g’ fn.1.txt
mv fn.1.txt fn.txt

3 Comments

Leave a Reply