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.
amarnathreddy_b
0
Newbie Poster
TKSS
commented:
Not a very user friendly post...not really a tutorial at all either.
+0
alc6379
120
Cookie... That's it
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.