I am having a problem with a nested if. I am sure I am overlooking something. I check for the existence of $Pidfl3 and it exists, o this condition I then want to check for the existence of a next file and remove it. The first if is executed, but on the second if I get test: argument expected.
My Code
-->
if [ -f $Pidfl3 ]
then
if [ -f $Pidfl ]
then
rm "$Pidfl"
fi
if [ -f $Pidf2 ]
then
rm "$Pidfl2"
fi
else
Can anybody help?