The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Variables scope.
.
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
:
Variables scope.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
05-23-2008
abhisek.says
Registered User
Join Date: May 2008
Posts: 9
checking for file existence first
Hi,
First yo chech for the file existence and then
FLAG=0;
while read file
do
FLAG =1;
done < input_file
echo "$FLAG"
I think this should work...
abhisek.says
View Public Profile
Find all posts by abhisek.says
Find abhisek.says's past nominations received
Find abhisek.says's present nominations given