Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Pushing carriage return in a file
Name: shsandeep Date: March 21, 2006 at 03:40:26 Pacific OS: AIX 5.2 CPU/Ram: 1.6 GHz 12 GB RAM Product: p570
Comment:
I have a file which has carriage returns at different positions at different lines: 47, 48, 45, etc. I would like to have all of them aligned at position 50. Is there any command or script which can serve the above purpose?
eg: pgm oldfile newfile 'newfile' should contain all the carriage returns/line feeds at position 50.
Summary: Jim, Thanks for your solution. It's working if i run it from the command line; however when i put it in a file and run as the script and redirect the output to another file, it won't work. I put the ...
Summary: Is there any way using the korn shell to delete all records in a file except one?? In other words if I had 6 lines in a file, could I issue one command and delete all rows execpt for row 3?? Any hel...
Summary: my problem is i want to replace a line in a file e.g i want to replace the line DBUID= (some name) with DBUID=$user variable file name is sample.ksh DBUID=aruns010 please help me in solving this pro...