Sunday, April 9, 2017

Count number of lines in a file shell script

#!/bin/bash



count=0;
while read lines;do
((count++));




done<"/home/rajam/name.txt"


echo "Number OfLines In a file";
echo "$count"

No comments:

Post a Comment