#! /bin/sh
# Write a shell program to copy, read two files name the keyboard and copied the contents of source file into the destination file. (f1 to f2).
echo " Enter the two files (source file and destination file)"
read sfile dfile
if cp $sfile $dfile
then
echo "copied the contents of source file to destination file successfully "
else
echo "Doesn't copied successfully "
fi
# Write a shell program to copy, read two files name the keyboard and copied the contents of source file into the destination file. (f1 to f2).
echo " Enter the two files (source file and destination file)"
read sfile dfile
if cp $sfile $dfile
then
echo "copied the contents of source file to destination file successfully "
else
echo "Doesn't copied successfully "
fi



0 comments:
Post a Comment