Get rid of “\\n” in files
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
You must be logged in to post a comment.
cat fn.txt | tr ‘\\\n’ ‘ ‘ > fn.1.txt
sed -i ‘s/ //g’ fn.1.txt
mv fn.1.txt fn.txt
You must be logged in to post a comment.
Terrific paintings! This is the type of information that are meant to be shared around the web. Disgrace on Google for now not positioning this submit higher! Come on over and visit my website . Thank you =)
340 bxph hguyi
Wouldn’t
perl -ip -e “s/\\n//g” fn.txt
do it in one short line? 😉