Breaking News
You are here: Home / Program Code / UNIX / write a script to which deletes a file which provided at command line

write a script to which deletes a file which provided at command line

$vi Removefile.sh 
for i in $*
do

        if [ -f $i ]
        then
                rm $i
        else
                echo -e "\n file does not exists"
        fi
done
:wq

Download Paper Solutions from Below Link

About admin

Scroll To Top