![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| command for deleting log files based on some condition | pulkit | Shell Programming and Scripting | 4 | 01-09-2008 03:17 AM |
| Deleting all content in a file from command line | kingdbag | UNIX for Dummies Questions & Answers | 2 | 07-20-2006 04:00 PM |
| Deleting timestamp using sed command | elearn.latha | UNIX for Advanced & Expert Users | 3 | 04-13-2006 11:02 AM |
| Deleting files with zero length using ls command | GNMIKE | UNIX for Dummies Questions & Answers | 6 | 07-10-2005 04:34 AM |
| Deleting from Mac on GUI? | wmosley2 | OS X (Apple) | 1 | 12-10-2003 08:06 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
command for deleting
Hai,
Please let me know the command to delete the last 3 letters in every line of a file .The 3 letters vary from line to line. Regards suneetha. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Code:
sed 's/...$//' filename |
||||
| Google The UNIX and Linux Forums |