09-07-2007
26,
0
Join Date: Aug 2007
Last Activity: 31 August 2017, 2:57 PM EDT
Posts: 26
Thanks Given: 0
Thanked 0 Times in 0 Posts
Script help for INFILE...
Hello all,
I'm having trouble trying to get the output of a variable passed from an INFILE. Here is what i have so far.
/tmp/INFILE --- inside INFILE will be 2 or more filenames like so
/apps/opt/FTTP_`date '+%m%d%y'`.txt
/apps/opt/DSLFeed.`date '+%m%d%y'`.txt
--Here is just a simple script to get the information
for i in `cat /tmp/INFILE`
do
if [ -f "$i" ];then
echo "$i file found"
exit 0
else
echo "$i file not found"
fi
done
***Problem is i can't get the output to return the data in the file which would be FTTP_090707.txt****
All that returns is FTTP_`date '+%m%d%y'`.txt
Your help is greatly appreciated.
Thanks,
AC