![]() |
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 |
| command line arguments | skooly5 | Shell Programming and Scripting | 1 | 04-07-2008 03:49 AM |
| arguments in command line | rrs | UNIX for Dummies Questions & Answers | 6 | 07-28-2006 06:44 AM |
| command line arguments | bankpro | High Level Programming | 3 | 02-02-2006 11:12 AM |
| Command Line Arguments | roba909 | UNIX for Dummies Questions & Answers | 7 | 01-19-2006 01:46 PM |
| Parsing the command line arguments | jayakhanna | UNIX for Advanced & Expert Users | 7 | 12-17-2003 07:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to check the number of command line arguments?
How do you check the number of command line arguments and give an error message if wrong?
also how to check if 2 files exist and are regular file and give an error message if wrong? (I know is something to do with test) if test $filename1 = $filename2 ; then ... (dont know what to do) else echo Wrong file fi How do you use cmp to check if the files have the same content and output a sutiable message? cmp file1 file2 ? Thank you so much!! Unix SuperNewbie Last edited by prkwan; 11-14-2002 at 01:43 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|