The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grep on multiple parameters kingofprussia UNIX for Dummies Questions & Answers 5 05-21-2007 05:31 AM
grep multiple lines jOOc Shell Programming and Scripting 6 11-20-2006 05:45 PM
selective positions from a datafile ganapati Shell Programming and Scripting 10 09-19-2006 06:09 AM
CDE - Icon positions when ICONISING jagannatha UNIX for Dummies Questions & Answers 1 07-11-2003 01:57 PM
grep: do multiple searches? sdemba UNIX for Dummies Questions & Answers 4 03-14-2002 06:32 PM

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

Join Date: Sep 2004
Location: Minnesota
Posts: 13
grep - multiple positions

I was wondering if anybody can help me with this. I have the following code to look for a space in position #48 and I want to change it so it looks in position 48, 59, and 50 for spaces. How can I do that?

Here's the current code -
grep -v '^.\{48\}[[:space:]].*' <infile> > <outfile>

Any help would be appreciated.
Reply With Quote
Forum Sponsor
  #2  
Old 11-15-2004
Registered User
 

Join Date: Sep 2004
Location: Minnesota
Posts: 13
Figured it out

You can never mind this question, I figured it out.
Reply With Quote
  #3  
Old 11-15-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Maybe you could post your solution to the problem so that others with similar issues can benefit from your experience

Cheers
ZB
Reply With Quote
  #4  
Old 11-16-2004
Registered User
 

Join Date: Sep 2004
Location: Minnesota
Posts: 13
Sorry about that, good idea. Here's my solution -
grep -v '^.\{48\}[[:space:]].*[[:space:]].*[[:space:]].*' <infile> > <outfile>
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 05:29 PM.


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