Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, hope you´re doing fine....
I was searching over the Internet the IF statements (UNIX-BASH) and/or operands and his meanings, for example:
File Operations
Using the if command, filenames can be tested for the following:-d filename
true if filename is a directory
-e filename
true if filename exists
-f filename
true if filename is a text file
-o filename
true if you own filename
-r filename
true if filename is readable
-w filename
true if filename is writable
-x filename
true if filename is executable
-z filename
true if filename is emptyBut I know there are a lot more I can use and those one who aren’t only for filenames, like –z , -eq , -n and so on….
If you please can tell me under what keyword can I search them in Google or show me the whole list.
10x.
Don´t freak out until you know the facts...Relax...!

Look at the test MAN page:
http://www.ss64.com/bash/test.html
or for the equality and other shell topics, check out the bash MAN page:
http://www.cs.sunysb.edu/documentat...

Thanks a lot Nails, it helped a lot, thats what I was looking for.10x again....
Don´t freak out until you know the facts...Relax...!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |