![]() |
|
|
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 |
| passing in arguments into a file using a loop | eltinator | Shell Programming and Scripting | 11 | 04-14-2008 05:01 PM |
| Multiple loops for Load test | willdev | Shell Programming and Scripting | 0 | 05-29-2006 04:25 PM |
| Can not test many arguments | baton | Shell Programming and Scripting | 4 | 11-18-2005 08:12 AM |
| Reading runtime arguments from a file | Sabari Nath S | UNIX for Dummies Questions & Answers | 4 | 08-24-2005 10:38 AM |
| arguments in sourcing file | Nathe | UNIX for Dummies Questions & Answers | 4 | 08-23-2004 07:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
can't TEST multiple arguments for a file
Hi,
I'm new to scripting and teaching myself how to code. Using Korn, I coded this one return "True" if a file is executable and it's not empty. However, each time I pass a file that is 777 which contains data, the script returns "false". if [ -x -a ! -s "$1" ] then echo "true" else echo "false" fi By the way.. I was successful using AND when validating strings instead of a file What am I missing? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|