Werner,
First It's not homework. I dont know what made you think it is.
Second the machine is remote and Iam just a user so cannot install utils. I did look for dos2unix, it's not there.
If you see the script I have accomplished what I need.
The reason Iam asking this is coz Iam writing a install document, where Iam assuming a normal user without dos2unix, without my script and without the ability to install utils should be able to run a setup script. The setup script for AIX was previously corrupted with carriage return (packaging issue, not in my domain), so Iam trying to find an easy way for the user to convert dos to unix.
I know this can be done redirecting output to temp file and renaming it to setup. It's a two step process, instead was wondering if this could be done in one line. Apparently it can't.
Thanks for tying to help.
ngujja
Main Topics
Browse All Topics





by: griesshPosted on 2005-03-14 at 09:36:56ID: 13536945
Hi ngujja,
You may be able to keep the whole file in memory to some degree, but that has an end pretty soon. Files are sequential streams of data on a carrier and in order to remove/add data in the middle of it you have to write the content to a new file first.
Is this homework or have you ever considered installing the AIX DOS Utils? They would give you a dos2unix and unix2dos conversion :-)
======
Werner