The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-18-2006
Registered User
 

Join Date: Nov 2006
Posts: 4
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.
Reply With Quote
Forum Sponsor
  #2  
Old 11-18-2006
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 395
Code:
 sed 's/...$//' filename
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0