We consider file name as “ishan.txt”
!/bin/bash
if [ -e $1/ishan.txt ]; then
echo "file is present"
else
cp -r ishan.txt $1
fi
sh script.sh /path to the folder
No shortcuts in life
We consider file name as “ishan.txt”
!/bin/bash
if [ -e $1/ishan.txt ]; then
echo "file is present"
else
cp -r ishan.txt $1
fi
sh script.sh /path to the folder