Reputation
Next tag badge:
97/100 score
36/20 answers
Badges
18 146 293
Newest
 Nice Answer
Impact
~4.5m people reached

Jun
1
awarded  Nice Answer
May
31
revised To replace % marks but not \% in Perl Regex
added 185 characters in body
May
31
revised To replace % marks but not \% in Perl Regex
added 96 characters in body
May
31
answered To replace % marks but not \% in Perl Regex
May
31
comment Elegant way to prevent command substitution from removing trailing newline
Note that you need setopt promptsubst in zsh for those ${variables} to get expanded in the prompt.
May
30
awarded  Nice Question
May
30
awarded  Great Question
May
29
comment Insert “return 0” between all braces in a file?
@Adam, It inserts a tab character. tab characters don't have width, they are control characters like CR or BS. For text editors or terminals, they move the cursor to the next tab stop. In vim you can change the number of columns between tab stops with the ts/tabstop option.
May
29
answered Insert “return 0” between all braces in a file?
May
29
answered find on a set of dirs that may not exist
May
29
answered gnu parallel with no argument script
May
29
revised Copying a Parent Directory into a Subdirectory Without an Infinite Loop
added 326 characters in body
May
29
revised Copying a Parent Directory into a Subdirectory Without an Infinite Loop
context added from OP's comments.
May
29
answered Copying a Parent Directory into a Subdirectory Without an Infinite Loop
May
29
comment How to turn Diff command into bash script with prompt
Note sort | uniq -d (or -D for all of them) to see duplicated lines. To say "end-of-file" when entering lines in a terminal, type CTRL-D. CTRL-Z is to suspend the current job.
May
29
comment How can I quickly sum all numbers in a file?
@TomFenech, the POSIX syntax for awk requires that those pattern/action items be separated by either ";" or "newline", so you may find awk implementations where it fails without this ";".
May
29
awarded  Nice Answer
May
28
comment How can I quickly sum all numbers in a file?
@slm, this is a new user with one of the best answers (from a technical stand point) and he gets two downvotes and a negative comment. Not a very warm welcome.
May
28
revised How can I quickly sum all numbers in a file?
POSIXified. Perfect otherwise
May
28
comment How can I quickly sum all numbers in a file?
@slm, that answer is not any more or less verbose than the other answers here and is self explanatory. It also has the advantage of working with input like time=1.4e5sec