Write a shell script to find a file/s that matches a pattern given as command line argument in the home directory, display the contents of the file and copy the file into the directory ~/mydir.VTU MCA UNIX LAB6A
list=`ls -f $1`
mkdir Mydir
for x in $list
do
cp $x Mydir
done
No comments:
Post a Comment