![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Issue with Removing Carriage Return (^M) in delimited file | sirahc | UNIX for Advanced & Expert Users | 7 | 03-25-2008 05:08 AM |
| Substituting carriage return followed by newline character - HELP | djkane | Shell Programming and Scripting | 14 | 02-28-2006 09:58 PM |
| Substituting carriage return follwed by newline character - HELP! | djkane | UNIX for Dummies Questions & Answers | 1 | 02-27-2006 09:11 PM |
| Removing Carriage return to create one record | r1500 | Shell Programming and Scripting | 3 | 02-06-2004 03:45 PM |
| Removing carriage return characters from file | b1saini | UNIX for Dummies Questions & Answers | 3 | 09-10-2003 10:41 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
sed removing carriage return and newline
Hi,
I'm not very familiar with unix shell. I want to replace the combination of two carriage returns and one newline with one carriage return and one newline. I think the best way to do this is to use sed. I tried something like this: sed -e "s#\[/r][/r][/n]#\[/r][/n]#g" file.txt but it doesn't work. Thanx in advance. Greetings Gina |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|