I am trying to run a csh script (this is usually done on my Linux machine but it died, so I had to resort to a Mac
) and I received the following error message:
head: illegal option --q
My script takes multiple files as the input, concatenates them and produces a single file as the output. The line that is giving me issues is listed below:
head -1 -q input*.txt > output.txt
If I remove the -q option, it does still work; however, it is adding the name of each, individual file to output.txt.
From what I have read, OS X does not support the quiet or silent (-q)option. Does anyone know of another option that would give me the same result? Any suggestions would be greatly appreciated.