Quote:
Originally Posted by
Banni
[...]
So if the -F'\t' part defines the fieldseperator what does the OFS='\t' part do and why is it necessary with both parts?
FS is the input field separator,
OFS is the output field separator. If not set you'll get the default one, which is one space.
Quote:
And what does the ;$4=_)1 part of the command do?
The semicolon separates the two statements.
$4 = _ is used to empty the fourth field (_ is just an undefined variable). The
1 at the end is a common
awk idiom that triggers the default action, which is
print the current record.
You can use any number different than 0 or any string different than ""(null) for that, it means
true in
boolean context.