![]() |
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 |
| 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 |
| Using variables created sequentially in a loop while still inside of the loop [bash] | DeCoTwc | Shell Programming and Scripting | 2 | 06-23-2009 05:59 PM |
| Script - Filter data - repeated loop - Help needed... | vasanth_vadalur | Shell Programming and Scripting | 15 | 06-17-2009 07:55 AM |
| loop needed? | adarii | Shell Programming and Scripting | 4 | 07-04-2008 04:22 AM |
| For loop help needed | arund_01 | UNIX for Dummies Questions & Answers | 3 | 06-25-2008 10:15 AM |
| NEED HELP PLZ! While Loop script needed! | scoobydoo | Shell Programming and Scripting | 1 | 03-03-2005 12:56 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
if loop help needed
Dear All,
Please help me out for the below query Code:
echo 'please input file type (i.e file1,file2,file3,file4): ' read a cat hello.wri | grep $a | wc -l > temp1.wri cat hello.wri | grep $a | wc -l > temp2.wri cat hello.wri | grep $a | wc -l > temp3.wri cat hello.wri | grep $a | wc -l > temp4.wri i want that if subscriber write file3 than only temp3.wri should be created and the rest command should be skipped and no files for temp1.wri,temp2.wri temp4.wri should be generated. only files for temp3.wri should be generated as per my understanding, (if) loop will be used please advice |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|