The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Modifying a csv file from Shell Script not4google Shell Programming and Scripting 2 11-21-2006 02:47 AM
Modifying the final output file charbel Shell Programming and Scripting 5 10-10-2006 10:36 AM
modifying C file and linking back to project files bruins2005 UNIX for Dummies Questions & Answers 1 06-22-2006 08:08 PM
Modifying the URL to point to another location in a .sh UNIX file pjanakir UNIX for Dummies Questions & Answers 6 01-25-2006 11:19 AM
Modifying binary file by editing Hex values ? Nicol UNIX for Advanced & Expert Users 4 11-04-2005 04:25 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2008
Registered User
 

Join Date: May 2008
Posts: 38
can someone help me with modifying this file

Hi,

I have a file which has data kind of like this.

Code:
Apr 13 08:20:38 uslis10a sendmail[6432]: [ID 801593 mail.info] m3DDKSx3006432: usliss26.ca.com [130.200.17.136]
Apr 13 08:20:38 uslis10b sendmail[6433]: [ID 801593 mail.info] m3DDKSoK006433: usliss26.ca.com [130.200.17.136] 
Apr 13 08:20:38 uslis10b sendmail[6442]: [ID 801593 mail.info] m3DDKcSo006442: usliss26.ca.com [130.200.17.136] 
Apr 13 08:20:38 uslis10c sendmail[6443]: [ID 801593 mail.info] m3DDKcdX006443: usliss26.ca.com [130.200.17.136] 
Apr 13 08:20:38 uslis10d sendmail[6446]: [ID 801593 mail.info] m3DDKckA006446: usliss26.ca.com [130.200.17.136]
I wanna remove the first three columns and keep the rest of the part.

for example in line I wanna delete until 'uslis10a'.

I want it in shell scripting language.

Thanks,
sunny.

Last edited by Yogesh Sawant; 05-23-2008 at 05:21 AM. Reason: added code tags
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-22-2008
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 758
Code:
cut -d ' ' -f 4- filename
Reply With Quote
  #3 (permalink)  
Old 05-22-2008
Registered User
 

Join Date: May 2008
Posts: 38
Thanks yogesh
Reply With Quote
Google UNIX.COM
Reply

Tags
cut

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:44 AM.


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

Content Relevant URLs by vBSEO 3.2.0