![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| How to insert carriage return before line feed? | huey ing | Shell Programming and Scripting | 2 | 08-05-2005 01:22 PM |
| sed removing carriage return and newline | mored | Shell Programming and Scripting | 2 | 05-06-2004 12:28 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 09:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Removing Carriage Return and or line feed from a file
Hello I'm trying to write a shell script which can remove a carriage return and/or line feed from a file, so the resulting file all ends up on one line.
So, I begin with a file like this text in file!<CR> line two!<CR> line three!<CR> END!<CR> And I want to end up with a file which looks like this: text in file!line two!line three!END! Any ideas on how I might tackle this example? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|