![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Figured it out
You can never mind this question, I figured it out.
|
|
#3
|
||||
|
||||
|
Maybe you could post your solution to the problem so that others with similar issues can benefit from your experience
Cheers ZB |
|
#4
|
|||
|
|||
|
Sorry about that, good idea. Here's my solution -
grep -v '^.\{48\}[[:space:]].*[[:space:]].*[[:space:]].*' <infile> > <outfile> |
|||
| Google The UNIX and Linux Forums |