![]() |
|
|
|
|
|||||||
| 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 |
| User History and commnad log | jaydeep_sadaria | UNIX for Dummies Questions & Answers | 5 | 02-11-2008 12:01 AM |
| How to apply the awk commnad ? | preethgideon | UNIX for Dummies Questions & Answers | 3 | 10-30-2006 05:32 PM |
| sorting file and unique commnad.. | amon | Shell Programming and Scripting | 2 | 02-16-2006 01:19 AM |
| Commnad for getting bandwidth usage | skotapal | UNIX for Dummies Questions & Answers | 5 | 01-16-2003 04:47 AM |
| How does commnad tail implement | chenhao_no1 | High Level Programming | 1 | 08-22-2002 10:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
grep commnad
echo "Enter a,: \c"
read answer echo case "$answer" in a|A) echo "Enter a file :\c" read $answer echo " Enter a string to be searched :\c" read $answer2 if [ ! -s $answer ] then echo " file doesn't exist" else grep $answer2 $answer # is there an alternative way # to declare this ? fi ;; |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
Also; your Original Post isn't really a question at all. "Is there an alternative way to declare this". Why do you want to declare it differently? What exactly are you trying to do? What is the purpose of your script? Or is this just what the assignment tells you to do?! Please review the rules . Looking back through your previous posts it seems you consistently post homework questions on this site, and appear to cause arguments when the point is made. Therefore, I am making the decision to lock this thread before such an argument ensues. Thanks ZB |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|