I want to remove extra headings from my file and am using the following:
awk '{ print $1}' test.txt > output.txt
And then I get the next few lines back in response:
File "<ipython-input-23-aa9db656210f>", line 1
awk '{ print $1}' test.txt > output.txt
^
SyntaxError: invalid syntax
Not really sure where I am going wrong, is there something I am missing about the awk command? Do I need to install some extra package? I am using Spyder IDE...