![]() |
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 |
| Trying to remove '^M' characters from a file. | Krispy | Shell Programming and Scripting | 13 | 05-12-2009 05:46 PM |
| sed to remove last 2 characters of txt file | ajp7701 | Shell Programming and Scripting | 1 | 10-29-2008 07:23 PM |
| 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 |
| Remove control characters | aravind_mg | UNIX for Dummies Questions & Answers | 5 | 10-02-2002 01:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Remove lasts characters from a string
Hi all,
Consider i have a directory /tmp/test and inside this directory i have the following files: 1.svf.tmp 2.svf.tmp 3.svf.tmp How can i remove the last four characters of every file in irder for the directory to be as: 1.svf 2.svf 3.svf I use the following command but id doesn't seem to work sed 's/\(.*\).../\1/' Thamk you! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|