Monday, October 28, 2013

WAP to counts the number of lines and words present in a given file.

#WAP to counts the number of lines and words present in a given file.  

echo Enter a file name:
read n
echo Number of Lines:wc –l $n
echo Number of Words:wc –w $n
echo Number of Characters:wc –c $n

No comments:

Post a Comment