The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Check file exists from a shellscript
.
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 file exists from a shellscript
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
05-28-2009
supriyabv
Registered User
Join Date: May 2009
Posts: 12
for i in $1
do
if [ ! -f $i ]; then
let countValue=1
fi
done
This is the code i am using and it is not working. where $1 is my txt file name
Thanks
Supriya
supriyabv
View Public Profile
Find all posts by supriyabv
Find supriyabv's past nominations received
Find supriyabv's present nominations given