Reputation
111,105
Next tag badge:
399/400 score
103/80 answers
Badges
17 137 278
Newest
 Guru
Impact
~4.0m people reached

May
10
revised Overwriting files found by find?
added 850 characters in body
May
9
comment Reorder lines in each 3-line record
@try-catch-finally, hold next print next get print
May
9
answered How to copy a directory recursively using hardlinks for each file
May
9
answered How to prevent expansion
May
9
comment What's the best way to count the number of files in a directory?
Note that -maxdepth is not standard (a GNU extension now also supported by a few other implementations).
May
9
comment Reorder lines in each 3-line record
OK, sorry, see edit.
May
9
revised Reorder lines in each 3-line record
deleted 39 characters in body
May
9
answered Portable way to kill a process listening on a given port
May
9
answered Reorder lines in each 3-line record
May
9
revised Reorder lines in each 3-line record
added 16 characters in body
May
9
answered What's the best way to count the number of files in a directory?
May
8
awarded  Nice Answer
May
8
comment How to use [\w]+ in regular expression in sed?
\w was in GNU grep (in the 80s) before being in perl and in GNU emacs probably even before that.
May
8
answered How to use [\w]+ in regular expression in sed?
May
8
revised bash - why does \x0d\x20 erase the line
added 417 characters in body
May
8
comment Checking if a command is a built-in in ksh
Also note that unset being a special builtin, if it fails, that exits the subshell. Your builtin would say that . is not a builtin for instance.
May
8
revised Checking if a command is a built-in in ksh
added 17 characters in body
May
8
comment Checking if a command is a built-in in ksh
Note that if PATH is set to the empty string, it searches for executable in the current directory. So if you have a "mybuiltin" executable file in the current directory, that builtin mybuiltin will return true. Set it to PATH=/no instead. You shouldn't use echo for arbitrary data. Use printf "%s\n" or print -r -- instead.
May
8
answered bash - why does \x0d\x20 erase the line
May
8
revised Delete text from a file using regular expressions
That AT&T sed is pretty bogus and probably not worth mentioning.