Hello, please sign in or register
You are here: Home

File exists within a subdirectory

Calling the script

bash script.sh /root/dir

The code... note i get errors when running this but it works.

if ["`find $1 -type f`" = ""]; then
        exit 1
else
        exit 0
fi

Comments

0921maoqiuyun
cheap nba jerseys, http://www.nbajerseys.net/ jordan shoes, http:/...
Created 21/09/15
Title*
Comment

Prove you are not a robot

To prove you are not a robot, please type in the six character code you see in the picture below
Security confirmation codeI can't see this!
Contact
Name*
Email never shown*
Home Page

Author

Andrew Dodson
Since:Feb 2007

Comment | flag

Categories

Bookmark and Share