Hi,
I have this code here. Its suppose to do something when certain condition is met, I'm pretty sure at least one of the condition will be meet somewhere in the loop but it always go to else part of the script.
Is something wrong on this script?
age_list=`tar -tvf /home/dir/$tarfile | grep $some_variable | grep "$date"`
if [ -f "$age_list" ]; then
echo "yes"
else
echo "no"
fi
Thanks!