96,599 reputation
12114239
bio website
location European Union
age
visits member for 2 years, 4 months
seen 1 hour ago

Nov
25
comment Remove everything that is not a 4 character number
What about in foo1234bar or 0x1234ff or 1.1234?
Nov
25
answered Remove everything that is not a 4 character number
Nov
25
comment How to pick out files in a folder in which the header contains specific text?
Indeed. While nextfile was introduced by GNU awk, Brian Kernighan (the k in awk) added it in his implementation in 1996, and that eventually made its way to the BSD awks. Which means nextfile is more widely available than I initially thought (still not POSIX or available in many commercial Unices though).
Nov
25
comment How to pick out files in a folder in which the header contains specific text?
nextfile requires GNU awk or recent versions of mawk.
Nov
25
comment How to pick out files in a folder in which the header contains specific text?
You've got your logic backward. You're only checking for FNR > 5 in lines that match the pattern.
Nov
25
revised How to count the number of interfaces in a bridge
added 520 characters in body
Nov
25
answered How to count the number of interfaces in a bridge
Nov
25
answered grep words around a token
Nov
25
revised grep words around a token
PCRE, not perl, GNU grep only. Good habit to use `'` instead of `"` for anything with backslashes (also for compatibility with `rc`). Typos.
Nov
25
revised grep words around a token
need to quote the globs. `-o` is GNU specific.
Nov
25
awarded  Nice Answer
Nov
24
comment How do I know if I'm in a jail, container, snapshot, etc. environment?
See also unix.stackexchange.com/q/30851/22565 and unix.stackexchange.com/q/89714/22565 Try imvirt
Nov
24
revised Why is using a shell loop to process text considered bad practice?
added 82 characters in body
Nov
24
revised Why is using a shell loop to process text considered bad practice?
added 33 characters in body
Nov
24
answered Why is using a shell loop to process text considered bad practice?
Nov
24
comment What does PIP stand for?
guys, before downvoting or voting to close, please provide an authoritative reference that clearly states what's the official acronym definition if there's one. The links provided by John and @eyoung100 don't answer the question. (one may argue that the question has little to do with Unix or Linux though).
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
@cuonglm, that one only hints at one possible reason why one should avoid it. Out of the conceptual, reliability, legibility, performance and security aspects, that only covers reliability.
Nov
24
revised What does PIP stand for?
added 34 characters in body
Nov
24
comment What does PIP stand for?
"pip installs packages" is more commonly found. here wikipedia
Nov
24
revised What does PIP stand for?
nothing to do with linux in particular.