B — Command Line
Due Monday, September 12, 9:59:59pm Friday, September 16, 9:59:59pm
Purpose to explore rudimentary properties of the chosen programming language; to deliver software as specified
Delivery You must deliver xyes—
All auxiliary files must be put into a sub-directory called Other.
Task Develop xyes, a shell-executable command-line program that echos the command line arguments to standard output (known as STDOUT).
In principle, the program turns all command line arguments into a string and concatenates those strings, separated by a single ASCII blank space. The program displaysThe word “display” means the surrounding string quotes do not show up. this final string an infinite number of times to STDOUT. If the first command line argument is --limited the program composes the output string from the remaining command line arguments and displays only 20 lines of this string. If there are no command line arguments to form the output string, the program uses "hello world" instead.
$ yes |