Computing.Net > Forums > Unix > simple script to validate that there are no f

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

simple script to validate that there are no f

Reply to Message Icon

Name: simplysham
Date: June 23, 2009 at 23:54:06 Pacific
OS: Windows XP
Subcategory: General
Comment:

My requirement is, i want to Validate a UNIX filesystem path say for exmaple:- /abc/def/ghi/jkl and report if any files found.
Could somebody advice a simple script or logic.
Please.



Sponsored Link
Ads by Google

Response Number 1
Name: simplysham
Date: June 24, 2009 at 03:50:03 Pacific
Reply:

Could somebody help sooner please


0

Response Number 2
Name: David Perry
Date: June 24, 2009 at 04:34:44 Pacific
Reply:

Have you tried the file operators to check the directory?

if [ -d /abc/def/ghi/jkl ] ; then
echo "Found"
fi

http://www.bo.infn.it/alice/alice-d...

Have you looked at the find command ?

find /abc/def/ghi/jkl

man find for more details.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: simple script to validate that there are no f

A simple script for creating a link www.computing.net/answers/unix/a-simple-script-for-creating-a-link/6981.html

Simple script to copy files www.computing.net/answers/unix/simple-script-to-copy-files/4521.html

recognize if in uppercase www.computing.net/answers/unix/recognize-if-in-uppercase/5143.html