![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing last character from each line of file | cjhancock | Shell Programming and Scripting | 17 | 08-29-2008 05:05 AM |
| Need to serach if a new line character exists on the last line in a file | sunilbm78 | UNIX for Dummies Questions & Answers | 10 | 02-29-2008 02:15 PM |
| removing new line character | ammu | Shell Programming and Scripting | 2 | 01-15-2008 10:12 AM |
| Removing character from list line (at the end) | malaymaru | Shell Programming and Scripting | 2 | 11-28-2007 08:05 AM |
| Removing a particular line from a text file | sendhilmani123 | Shell Programming and Scripting | 5 | 05-31-2006 09:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
removing a character and addending to end in each line in a file
HI i am having a file this
(sys19 nlfct:/pfact/temp>) cat temp_sand1234567890 1234567890 1234567890 1234567890 I want to make this file as (sys19 nlfct:/pfact/temp>) cat temp_sand1456789023 1456789023 1456789023 1456789023 just take the 2nd and 3rd position and put it in end of ecah line . PLease let me know how to do that Thanks, Arun |
|
||||
|
Thanks all,
can you please let me know how it is done there . I have done the same by replacing the number it is not working. echo '1234567890' | sed 's/^\(..\)\(..\)\(.*\)/\1\3\2/' it is working but the same below is not working echo '1234567890' | sed 's/^\(..\)\(..\)\(.*\)/\1\3\3/' why it is not working ??. Thanks in advance , Arunkumar |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|