![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| newline character | trichyselva | UNIX for Dummies Questions & Answers | 9 | 4 Weeks Ago 10:47 AM |
| Sed append newline character | Gaurang033 | Shell Programming and Scripting | 3 | 06-26-2008 02:57 AM |
| Substituting carriage return followed by newline character - HELP | djkane | Shell Programming and Scripting | 14 | 02-28-2006 06:58 PM |
| Newline character not working for ksh | sanikv | Shell Programming and Scripting | 11 | 06-23-2005 10:34 AM |
| How can I replace newline character? | ghoti | UNIX for Dummies Questions & Answers | 1 | 08-16-2001 09:49 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
newline character, space and tab after a string
no problem
Last edited by angelina; 07-12-2008 at 07:36 AM. Reason: added code tags |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Since it's your input file that's messed up, why not just edit it and correct it? I think cat -evt will show you a little more info on what is actually in the file.
|
|
#3
|
|||
|
|||
|
I did fix it in vi .....thats not a problem ......but to automate it how do i work on it........plz suggest me .......
Last edited by angelina; 07-11-2008 at 07:47 PM. Reason: use code tags |
|
#4
|
||||
|
||||
|
Try this:
Code:
perl -i.bak -0777 -ple's/(".*?)[\r\n]*(.*?")/$1$2/g' file
Last edited by radoulov; 07-11-2008 at 05:36 AM. Reason: added the g swith |
|
#5
|
|||
|
|||
|
Hi rad,
I just copied ur command and pasted on the prompt.infact i used this Last edited by angelina; 07-11-2008 at 07:47 PM. |
|
#6
|
||||
|
||||
|
It's correct
|
|
#7
|
|||
|
|||
|
wish u all the best. muaaaaaaaaaahhhhhhhhhh
Last edited by angelina; 07-11-2008 at 07:48 PM. |
|||
| Google The UNIX and Linux Forums |