![]() |
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 |
| sed to remove 1st two characters every line of text file | ajp7701 | Shell Programming and Scripting | 20 | 06-09-2009 04:06 PM |
| Trying to remove '^M' characters from a file. | Krispy | Shell Programming and Scripting | 13 | 05-12-2009 05:46 PM |
| How to remove null characters from file? | siegfried | UNIX for Dummies Questions & Answers | 1 | 04-02-2008 12:02 AM |
| remove space characters | melanie_pfefer | Shell Programming and Scripting | 1 | 03-11-2008 01:45 PM |
| How to remove Characters before '~' | Amey Joshi | UNIX for Dummies Questions & Answers | 4 | 01-07-2008 06:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sed to remove last 2 characters of txt file
sed 's/^..//' file1.txt > file2.txt
this will remove the first two characters of each line of a text file, what sed command will remove the last two characters? This is a similar post to my other....sry if I'm being lazy.... I need a file like this (same as last post) >cat file1.txt 10081551 10081599 10082234 10082259 20081134 20081159 30082232 10087721 > to look like this: >cat file1.txt 100815 100815 100822 100822 200811 200811 300822 100877 > |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|