linux - How to write a program called biggest that takes any number of arguments -


So I'm trying to write a program that argues in a large number. For all the arguments in the file, this file gets most of the words in it, and prints a line such as:

The file is the largest number (37)

There are 37 words in the file named "whatever", which is in the form of another file in the more (or similar) current directory. If no arguments are valid files, then the following line should be printed in stderr: Largest: A valid file name was not specified

The command looks like wc

thanks

following Keep in script and enjoy:

  for i; Wc -w $ i; Did Sort-N | Tail-1 Cut-D "-f2  

PS: When you do not help yourself, no one wants to help, this was a time group for me; -)


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -