![]() |
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 |
| User History and commnad log | jaydeep_sadaria | UNIX for Dummies Questions & Answers | 5 | 02-11-2008 04:01 AM |
| How to apply the awk commnad ? | preethgideon | UNIX for Dummies Questions & Answers | 3 | 10-30-2006 09:32 PM |
| sorting file and unique commnad.. | amon | Shell Programming and Scripting | 2 | 02-16-2006 05:19 AM |
| Commnad for getting bandwidth usage | skotapal | UNIX for Dummies Questions & Answers | 5 | 01-16-2003 08:47 AM |
| How does commnad tail implement | chenhao_no1 | High Level Programming | 1 | 08-23-2002 01:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
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 ;; |
|
|||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|