write a shell script to search how much character in file.

echo enter filename:
read file1
c=`wc -l $file1 | cut -d " " -f 1`
echo number of line in $file1 is $c

Comments

Leave a Reply

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