Write a shell script (/bin/sh) called 'fileline' which is passed two command line parameters. The first parameter is the name of a file and the second is a number 'n'. The script should write the contents of the nth line of the file to a new file called 'out'. If the input file does not exist or no such line exists in the file, the script should write an error message to the terminal.
TKSS commented: Not a very user friendly post...not really a tutorial at all either. +0