![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| grep specific line | ryandegreat25 | Shell Programming and Scripting | 6 | 07-21-2009 04:46 AM |
| Deleting Characters at specific position in a line if the line is certain length | Cailet | Shell Programming and Scripting | 10 | 12-17-2008 02:41 PM |
| retrieving specific lines from a file - can I use grep ? | hcclnoodles | Shell Programming and Scripting | 9 | 09-23-2008 06:45 AM |
| grep a word from a specific line | blurboy | Shell Programming and Scripting | 3 | 01-23-2008 04:13 AM |
| check position of end of line for some specific lines | senthil_is | Shell Programming and Scripting | 1 | 11-09-2007 01:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
grep lines with two specific characters somewhere in the line
I'm having trouble with extracting certain lines from a file based on whether they have all the required fields.
Original file: Code:
snt:594:Sam N This bpt:2342:Bob P That lr:123 wrp:23:Whoever Person cor:794 Code:
snt:594:Sam N This bpt:2342:Bob P That wrp:23:Whoever Person Code:
grep ":*:" < temp Last edited by vgersh99; 09-11-2009 at 12:24 PM.. Reason: code tags, PLEASE! |
|
||||
|
To understand it better, you are missing . (dot) thats all. Previously you had :* which meant zero or more :.
Code:
grep ":.*:" t1 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|