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.
remove every other carriage return
Name: Robert Pearson Date: December 13, 2002 at 14:49:33 Pacific OS: Solaris CPU/Ram: unknown
Comment:
Suppose I have a data file like this...
500010 full 25 12/11/2002 430200 41101238 N/A 12/11/2005 500011 Full 25 12/11/2002 295400 62050152 N/A 12/11/2005
How can I remove every other carriage return so that it looks like...
500010 full 25 12/11/2002 430200 41101238 N/A 12/11/2005 500011 Full 25 12/11/2002 295400 62050152 N/A 12/11/2005
Summary: Thanks for that. I have tried this, but it removes all carriage returns and linefeeds. I want to remove a CR/LF which is in the middle of each line. ...
Summary: How can I search for a string that wraps on to the next line and then replace the carriage return with nothing so that the line no longer wraps on to the next line. Example: blah blah blah...bl ah bl...
Summary: 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 s...