what does this mean IF [ ! -f name ]?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting what does this mean IF [ ! -f name ]?
# 1  
Old 09-10-2010
Bug what does this mean IF [ ! -f name ]?

Im a newbie to shell scripting,

Please can suggest me some tutorials/materials to start scripting on my own.

Thanks!
# 2  
Old 09-10-2010
Unix/Linux is case sensitive - something to obeye all the time ^^

It tests if the file "name" does not (! is a negation) exist and is not a regular file and turns "true" in that case. You can check for more testing options if you type in
Code:
man test

# 3  
Old 09-11-2010
You can start from here:

Bash Guide for Beginners

Your question's answer is here:
Introduction to if
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question