Hello Gurus,
I am writing one script at linux.
The logic is
- There is a find command which will find some specific files daily [three files generating] and store at a variable [Working fine]
- Then echo that variable [Working fine].
- Now when I am trying to read the variable by using for loop it is throwing error as below:
text cat: CKDT.dat: No such file or directory
===========
The script details are as below:
---------------
FILEPATH="/u10/archive/"
DTFILE=`find ${FILEPATH} -type f -mtime -1 -printf '%f %TH:%TM\n' | awk '$NF>"06:40" && $NF<"06:50" {print $1}'`
echo ${DTFILE}
for i in `cat ${DTFILE}`
do
echo ${i}
done
--------
Please suggest.
Thanks-
Pokhraj