The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
check for FILES existence
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
check for FILES existence
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-28-2006
mbketan
Registered User
Join Date: Jun 2006
Posts: 9
check for FILES existence
Try this
for i in `ls -1`
do
if [ -s $i ]
then
echo "file exist"
fi
done
mbketan
View Public Profile
Find all posts by mbketan
Find mbketan's past nominations received
Find mbketan's present nominations given