![]() |
|
|
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 |
| awk arguments | karthikn7974 | Shell Programming and Scripting | 6 | 05-07-2008 01:34 AM |
| if statement - how can I do 2 arguments? | Darklight | Shell Programming and Scripting | 6 | 04-16-2008 10:28 AM |
| Arguments | iago | UNIX for Dummies Questions & Answers | 1 | 08-24-2007 11:50 AM |
| Securing arguments | SolidSnake | Shell Programming and Scripting | 0 | 05-21-2004 11:44 AM |
| passing arguments | jpprial | UNIX for Dummies Questions & Answers | 4 | 04-03-2001 12:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
several arguments together
Hello guys,
you may help me on this : I want to search thru many files if a sentence or a string exists and printout the lines where this is present by calling a script like : loc "arg1 arg2 arg3 arg4" where arg1 arg2 arg3 arg4 would be in fact the sentence separated with blanks... In my loc script, I would have to count the number of arguments and store them as a sentence into one single variable i guess, like : sentence=`arg1 arg2 arg3 arg4` But, as arguments number is undefined, how can i insure this to work in any case ? Any idea ? Thanks, homefp ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|