Dec 18, 2013, 9:53 AM
Post #1 of 4
I need to write script P2 that takes filenames as parameters, and print output (to screen) - one line for every filename that contains: name of a filename, one space, a mount of different words in a file.
please help me with a task
in addition the output must be sorted in alphabetic order of filename.
the last line must contain names of filenames with the largest mount of words. the names have to be seperated by space, and sorted in alpabetic order
for example, there are several files that contains:
A B C K E
a a b ab ab ab 20 xyza abcd 1
b b a 5 4 6 200 xyz 2
after running P2 A B C K E, the output will be:
B C E