I am trying to sort a file and store the output into a tmp
file. This is what my file looks like:
this_is_my_file (with no extension)
Names Last_Name_Initial
---
Alex G
Nick D
Jon J
Cain V
Anderson S
Chris W
I know the command to sort the file is sort -n $PWD/this_is_my_file -o tmp
but how to I start the sort after the ---
? And a follow up question, how can you distinguish between a text or xml file if the file you are comparing has no extension?