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

What have you written on it so far? Please post code that you've written, and ask specifically what you need help on. We're not here to do assignments for you.