![]() |
|
|
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 |
| replace UTF-8 characters with tr | ripat | Shell Programming and Scripting | 2 | 06-26-2008 08:43 AM |
| Want to replace characters | arndorff | Shell Programming and Scripting | 5 | 01-29-2008 04:05 PM |
| How to replace characters 7 through 14 of every line in a file | jakSun8 | Shell Programming and Scripting | 9 | 12-13-2007 02:13 AM |
| Diff output, unwanted characters | scanner248 | UNIX for Dummies Questions & Answers | 5 | 10-17-2007 05:23 PM |
| Replace Characters... | lgardner17325 | UNIX for Dummies Questions & Answers | 8 | 10-26-2006 06:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
to replace unwanted new line characters
Hi
how to replace un wanted new line characters. my file contains data like. ramu,sony,"raju \n ravi \n ramya" \n ravi,sarah,"sowmya \n sorry s\ sangam" \n i want replace new line characters in between double coats with single space. for example $ cat input_file ramu,sony,"raju ravi ramya" ravi,sarah,"sowmya sorry sangam" which i dont want. i want out put like below.i want replace newline s in between double quoates. ramu,sony,"raju ravi ramya" ravi,sarah,"sowmya sorry sangam" any body help to find solution. either perl script or any shell script |
|
||||
|
use tr also see ASCII - Wikipedia, the free encyclopedia to know the octal for new line, which is 012 Code:
tr -d '\012' < new_lines |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|