To count the number of words in line 40 through 60 of file f1.txt

$ sed -n 40,60p filename | wc -w


Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post