Program:
if cp $source $destination
then
echo file copied successfully
else
echo failed to copy the file
fi
Input/OutPut
shell7 shell77
file copied successfully
shell777 shell7777
cp: cannot access shell777: No such file or directory (error 2)
failed to copy the file
No comments:
Post a Comment