Hello there. Is there anyway that you can convert the '\n' in windows which is 2bytes to the '\n' 1byte so that the linux could read it?
jaepi 22 Practically a Master Poster
Recommended Answers
Jump to Postconverting ascii text files is trivial; you have a variety of tools. eg. tr, perl, awk, vi etc.in fact anything that can replace a cr-lf sequence with just a cr. eg.
awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt
you …
All 3 Replies
jaepi 22 Practically a Master Poster
Duoas 1,025 Postaholic Featured Poster
vijayan121 1,152 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.