![]() |
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 help | flood | Shell Programming and Scripting | 3 | 06-06-2008 01:14 AM |
| Grep | Aejaz | UNIX for Advanced & Expert Users | 3 | 04-30-2008 07:10 AM |
| grep | dineshr85 | Shell Programming and Scripting | 1 | 10-10-2007 04:52 AM |
| how to exclude the GREP command from GREP | yamsin789 | UNIX for Advanced & Expert Users | 2 | 10-05-2007 02:59 AM |
| Make grep -c display like grep -n? | Jerrad | Shell Programming and Scripting | 2 | 08-25-2006 12:20 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help w/grep
Not sure if this is the correct forum, It not pls point me to the correct one.
I need an explanation of this regular expression: grep /^[^\#]*sa2/ Noting the following: If the ^ character is placed at the start of an expression, it matches at the beginning of the string. If placed after an open-square-bracket, [, it means 'not the contents of the square-brackets'. Otherwise it just matches '^'. and this: The * character matches zero or more of the preceding character or group. Does not the above regex say: the statement is true if there are no # character at the beginning of the "line" (the # character somewhere else in the line does not matter) and the string: sa2 can be anywhere within the line irregardless of preceding or trailing characters. The string sa2 does not have to be at the beginning of the line? Thanks.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|