I am involoved in migrating OS from AIX to SLES 11. One script has a command Unix2dos & Dos2Unix. What is the alternative for these in SLES. Will recode latin1.. work???
Manopriya
0
Newbie Poster
Recommended Answers
Jump to PostIf you have
sed
andtr
then you could use to delete all instances of '\r' to convert from Dos to Unix, or to replace the end of each line with '\r\n' to go from Unix to Dos.Dos2Unix:
tr -d '\r' < dosfile > unixfile
Unix2Dos:sed -e 's/$/\r/g' …
All 2 Replies
Reply to this topic
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.