![]() |
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 for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it 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 and Retrieve Line by Line | maxmave | Shell Programming and Scripting | 2 | 06-03-2008 11:45 AM |
| How to grep only 1st line | St.Fartatric | UNIX for Dummies Questions & Answers | 3 | 05-19-2008 06:24 AM |
| grep a word from a line | Orbix | UNIX for Dummies Questions & Answers | 2 | 12-23-2007 11:52 AM |
| grep the line only if next line matches | pbsrinivas | Shell Programming and Scripting | 11 | 07-10-2007 08:51 AM |
| grep only one line | asoosai | UNIX for Dummies Questions & Answers | 3 | 05-30-2003 02:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Grep a line with between 3 and 5 digits
Hi,
I am having problems using grep to extract only 3,4 or 5 digit numbers from a text file, using: grep '\<[0-9]\{3,5\}\>' test.txt or grep '[0-9]\{3,5\}' test.txt or egrep '[0-9]{3,5}' test.txt I would appreciate any help that anyone can give me thanks Last edited by ceemh3; 09-17-2007 at 10:58 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|