In folder A i have a file "a' and text file named infile00.I would like to do redirection :a<infile01.
There is a code to do this
#get a file "a" in /home/A
for file in /home/A/*
do
if [ -x $file ]
then
#printing out if file is an execute file
echo $file "is an execute file"
# get an input file named input00 in /home/A
for input in /home/A/*
do
if [ ! -x $input ]
then
/home/A/$file<input
fi
done
fi
done
When i executed the script above, output was
correct is an execute
infile00 is an execute
I made some changes in the code as era suggested in the previous post:
( the red ones are modifications).
However, I still got the wrong ouput......