![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replacing the last data of each line ina file | jisha | Shell Programming and Scripting | 6 | 08-04-2008 04:47 AM |
| Replacing a line in a file - HELP!!! | maxmave | Shell Programming and Scripting | 1 | 06-04-2008 08:55 PM |
| replacing a line of unknown charecters in a file | malavm | Shell Programming and Scripting | 12 | 07-26-2007 01:25 AM |
| replacing first line or lines in a file | Terrible | UNIX for Advanced & Expert Users | 3 | 06-28-2006 05:23 PM |
| replacing the character "\" in a file | rjsha1 | Shell Programming and Scripting | 5 | 01-11-2006 06:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How should I replace End of line Character by ".
i.e in a file - Name1,NO1 Name2,No2 Name3,No3 .... Should look like -- Name1,NO1" Name2,No2" Name3,No3" .... |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Code:
sed -e 's/$/"/' filename > newfile |
|
#3
|
|||
|
|||
|
Thanks Yogesh. It worked fine.
|
|||
| Google The UNIX and Linux Forums |