Pages

Text

Recent Articles

Nike Sports

Ads 468x60px

Recent Posts

Google Plus

Download

Thursday, 12 April 2012

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).

#! /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

0 comments:

Post a Comment