Reputation
7,654
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
20 48
Newest
 Yearling
Impact
~637k people reached

Sep
9
comment head, tail, and then line?
Related question: stackoverflow.com/q/12182910/1331399
Sep
9
comment Find text between tab (\t) as a delimiter
@tachomi: You could also use the double-quotes as the delimiter. See my answer.
Sep
9
revised Find text between tab (\t) as a delimiter
Use double-quote as delimiter to avoid including them in the output
Sep
8
comment Find text between tab (\t) as a delimiter
@tachomi: Glad it worked, added two awk alternatives.
Sep
8
revised Find text between tab (\t) as a delimiter
Added awk alternative
Sep
8
comment Find text between tab (\t) as a delimiter
Use awk -F '\t' ....
Sep
8
answered Find text between tab (\t) as a delimiter
Sep
8
revised How to print own script name in mawk?
Clearer about output
Sep
8
comment How to print own script name in mawk?
@fedorqui: no worries, you also quoted the relevant manual bits and showed an alternative use of ps.
Sep
8
revised How to print own script name in mawk?
edited body
Sep
8
comment How to print own script name in mawk?
@cipper: You can get the process id through a sub-shell in mawk. See the edit.
Sep
8
revised How to print own script name in mawk?
Added mawk and nawk alternatives
Sep
7
comment How to print own script name in mawk?
@cipper: then use the answer by cuonglm.
Sep
7
comment How to print own script name in mawk?
@cipper: The PROCINFO hash is GNU awk specific, so this only works with GNU awk.
Sep
7
comment How to print own script name in mawk?
@cipper: This only works with GNU awk, I added the missing shebang line.
Sep
7
revised How to print own script name in mawk?
Ensure interpreter is GNU awk
Sep
7
answered How to print own script name in mawk?
Aug
26
awarded  Enlightened
Aug
26
awarded  Nice Answer
Aug
20
comment Merging columns in a file using Awk
@glennjackman: You're right, I made an edit with a warning. Thanks.