delete first and last lines from a file using sed
I tried do do it using awk, but i did not find an easy way to determine the last line in file. So sed did the trick:
cat myFile | sed '1 {d}; $ {d}' > myNewFile
I tried do do it using awk, but i did not find an easy way to determine the last line in file. So sed did the trick:
cat myFile | sed '1 {d}; $ {d}' > myNewFile
Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers