How can I delete the top two lines of the input file.
For example, the file named TRY contains three lines -
Hello World Greeting
Use hello world again!!!
Please give me a real example!
if I have a script as below -
--------------------------
----------
------
#!/bin/sh
head -2 TRY > outputfile
--------------------------
----------
------
then the outputfile will contain -
Hello World Greeting
Use hello world again!!!
My question is how can I make the outputfile contains "Please give me a real example!"?
Remark: Please assume that we don't know how many total of lines of the input file for my real application; therefore, I can't use tail -1 TRY > outputfile.
Any input for this question will be definitely helpful!!! Thanks in advance!!!
Tam
Start Free Trial