A shell-script to remove the duplicate lines from a given file.

if [ ! –e $1 ]

then

echo “file don’t exit”

else

sort –u $1 –o $1

fi

echo “duplicate line remove”

echo “Content of file is cat $1

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.