![]() |
|
|
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 |
| file searching... | Kaminski | Shell Programming and Scripting | 1 | 02-02-2008 07:23 AM |
| Searching contents of a file | thepitzaboy | UNIX for Advanced & Expert Users | 2 | 08-30-2007 02:13 PM |
| searching a file | straight_edge | Shell Programming and Scripting | 4 | 01-12-2007 09:21 AM |
| Searching for fields in a file | c2b2 | UNIX for Dummies Questions & Answers | 4 | 12-12-2006 11:40 AM |
| Append a field to the end of each line of a file based on searching another file. | ultimate | Shell Programming and Scripting | 2 | 03-29-2005 11:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need Script for the same
Hi zaxxon,
Thx for u r post i need to do extra business logic in the script but initially first i need to pass the argument (ie filename ) to the script so that i can replace in u r command given find .| grep -E "file1|file2|file3|file4" for ex as u said the file1 will be dyanamically given by the user it is not constant so i need a script where in which i can take the argument from the userinput and need to implement the business logic hope u do the needful |
|
|||||
|
Afaik he wants a specific directory and look for multiple filenames and is look for a way to script it with parameters as input for the filenames. Here another one btw: Code:
find . -type f \( -name "file1" -o -name "file2" -o -name "file3" \) -print For having trouble with the parameters maybe have a look here: Internal Variables Look for "Positional Parameters", as a start. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|