![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 12:04 PM |
| To cut end string from line | visu | Shell Programming and Scripting | 7 | 12-20-2007 10:22 PM |
| get the NF of a string line | ozzman | Shell Programming and Scripting | 5 | 02-01-2007 09:01 PM |
| How I Can get String From the Line | habuzahra | UNIX for Dummies Questions & Answers | 2 | 10-29-2006 03:55 AM |
| Add string after line X | alienET | Shell Programming and Scripting | 2 | 10-13-2005 06:52 PM |
|
|
Submit Tools | LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|