Just when I thought I wouldnt need to worry about knowing anything about Linux they schedule an 'operating systems' class that hits me with a god damn linux assignment. Its not all doodles and zombies 
We had like 2 labs where we learnt basic commands etc. Now they expect me to know how to do this!!!
So like start helping
--------------------------------------------------------------------------
A1.
Write an executable shell script that reads a specified number of lines <nlines> from a file <source_file>, starting from a given line number <start_line> and writes them to a file <destination_file>
A2.
The parameters <source_file>, <destination_file>, <start_line> and <nlines> are to be specified on the command line.
A3.
Your script should handle the following:
If <destination_file> does not exist, the process must create it.
If <destination_file> already exists, a warning message should be generated with the options to:
continue and override the existing file
continue and append to the existing file
A4.
You should also make clear how are you going to handle the following situations:
<source_file> does not exist
<start_line> is above the total number or lines in <source_file>
<nlines> exceeds the number of lines in <source_file>
Deliverables:
1. A commented shell script, describing what each line does - and making clear how the questions in A4 are addressed.
2. An executable script.
We had like 2 labs where we learnt basic commands etc. Now they expect me to know how to do this!!!
So like start helping
--------------------------------------------------------------------------
A1.
Write an executable shell script that reads a specified number of lines <nlines> from a file <source_file>, starting from a given line number <start_line> and writes them to a file <destination_file>
A2.
The parameters <source_file>, <destination_file>, <start_line> and <nlines> are to be specified on the command line.
A3.
Your script should handle the following:
If <destination_file> does not exist, the process must create it.
If <destination_file> already exists, a warning message should be generated with the options to:
continue and override the existing file
continue and append to the existing file
A4.
You should also make clear how are you going to handle the following situations:
<source_file> does not exist
<start_line> is above the total number or lines in <source_file>
<nlines> exceeds the number of lines in <source_file>
Deliverables:
1. A commented shell script, describing what each line does - and making clear how the questions in A4 are addressed.
2. An executable script.
