Shell scripting wc usage

view full story

http://www.linuxforums.org – Hi.I need to do a script that can receive any number of parameters which are file names and return the number of lines every file has.the output should be like that "The file nameoffile.txt has 5 lines".From what i have done my output is like "The file nameoffile.txt has 5 nameoffiletxt lines".how can I do the output without printing the name of file after the number of lines.thanks (HowTos)