The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 06:47 AM
Modifying the final output file charbel Shell Programming and Scripting 5 10-10-2006 01:36 PM
modifying C file and linking back to project files bruins2005 UNIX for Dummies Questions & Answers 1 06-22-2006 11: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 03:19 PM
Modifying binary file by editing Hex values ? Nicol UNIX for Advanced & Expert Users 4 11-04-2005 08:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-22-2008
eamani_sun eamani_sun is offline
Registered User
  
 

Join Date: May 2008
Posts: 40
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 08:21 AM.. Reason: added code tags
  #2 (permalink)  
Old 05-22-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Code:
cut -d ' ' -f 4- filename
  #3 (permalink)  
Old 05-22-2008
eamani_sun eamani_sun is offline
Registered User
  
 

Join Date: May 2008
Posts: 40
Thanks yogesh
Sponsored Links
Closed Thread

Bookmarks

Tags
cut

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0