In: Computer Science
Script 3:
Please show screenshots from the command prompt! Thank you!
echo "Enter file name"
read filename
test -f $filename && echo "press (C)for Copy, (M) Move or
(D) Delete " || exit 1
read choice
if [ "$choice" = C ];
then
echo "Enter Destination Directory"
read dest
cp $filename $dest
elif ["$choice" = M ];
then
echo "Enter Destination Directory"
read dest
mv $filename $dest
elif ["$choice" = D ];
then
rm $filename
else
echo " press (C)for Copy, (M) Move or (D) Delete
"
fi