![]() |
|
|
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 |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| grep to find content in between curly braces, "{" and "}," | keshav_rk | Shell Programming and Scripting | 4 | 08-09-2007 11:14 PM |
| Unix shell script (grep -A 6 -B 2 "ORA-" filename | el_guero | Shell Programming and Scripting | 7 | 04-25-2007 06:37 PM |
| Pls correct the "if" syntax | ganapati | Shell Programming and Scripting | 5 | 07-31-2006 03:07 AM |
| correct use of "ps -ef | grep "? | mulligm | UNIX for Dummies Questions & Answers | 1 | 10-03-2001 09:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
correct syntax for using "grep regex filename" ?
I'm trying to grep a long ls by looking at the beginning of each filename for example:
Many files begin with yong_ho_free_2005... Many files begin with yong_ho_2005... I can't just use "grep yong_ho" otherwise It'll display both files. So I'm trying to use a regex but my syntax is wrong. ls -al | grep '^yong_ho_[1-9]' This displays no matches. Anyone know what I'm doing wrong? It works if I remove the ^ carat... How come I can't anchor it? Last edited by yongho; 06-13-2005 at 03:32 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|