Count lines from multiple files (3)

view story

http://www.unix.com – Hey everyone, I've to count lines from string of files names then to show sum output of lines. for example: read x = F1 F2 F3 F1 = 12 lines F2 = 14 lines F3 = 10 lines = 36 what I did is: Code: read x echo $x >|temp for x in $(cat temp) do wc -l < $x done >| temp2 (HowTos)