![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RegExp: From first occurrance to last (at line start) | jjinno | Shell Programming and Scripting | 6 | 01-08-2008 04:04 PM |
| To cut end string from line | visu | Shell Programming and Scripting | 7 | 12-21-2007 02:22 AM |
| get the NF of a string line | ozzman | Shell Programming and Scripting | 5 | 02-02-2007 01:01 AM |
| How I Can get String From the Line | habuzahra | UNIX for Dummies Questions & Answers | 2 | 10-29-2006 07:55 AM |
| Add string after line X | alienET | Shell Programming and Scripting | 2 | 10-13-2005 10:52 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi everybody
Code:
for file in * #Bash performs filename expansion #+ on expressions that globbing recognizes. do output="`grep -n "$1" "$file"`" echo "$file: `expr "$output" : '\(^.*$\)'`" done I've got a problem with the regexp. It returns the full string which is multilined. Thank you in advance for any help |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|