![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| proble in running .properties file | sari | Linux | 0 | 04-22-2008 12:25 AM |
| Depot file properties | sethumadhavan | HP-UX | 1 | 11-22-2007 03:58 AM |
| Array Properties | Raynon | Shell Programming and Scripting | 2 | 08-17-2007 03:49 AM |
| properties for vi | shriashishpatil | UNIX for Dummies Questions & Answers | 2 | 04-20-2007 10:27 AM |
| Directory properties | trekker | UNIX for Dummies Questions & Answers | 8 | 11-20-2001 05:55 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
File properties
Hi ,
I do have a line in my code as follows: if [[ -z $FILE_NAME ]] ; then ... else ... fi What does the -z does ? Similarly there is -s in some other part of the code. I guess there are many options like this.. Can anybody please tell what all options are available and what do they mean ? |
| Forum Sponsor | ||
|
|
|
|||
|
The statement means "if the variable $FILE_NAME is of zero length, then...".
The -s option could mean anything, depending on where it is used. Check out http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ for a place to start learning shell scripting. If it is bash You want to learn about. |