Reputation
111,600
Next tag badge:
399/400 score
103/80 answers
Badges
17 139 280
Newest
 Nice Answer
Impact
~4.1m people reached

5h
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.
6h
answered Insert “return 0” between all braces in a file?
9h
answered find on a set of dirs that may not exist
11h
answered gnu parallel with no argument script
11h
revised Copying a Parent Directory into a Subdirectory Without an Infinite Loop
added 326 characters in body
11h
revised Copying a Parent Directory into a Subdirectory Without an Infinite Loop
context added from OP's comments.
11h
answered Copying a Parent Directory into a Subdirectory Without an Infinite Loop
12h
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.
17h
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 ";".
18h
awarded  Nice Answer
1d
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.
1d
revised How can I quickly sum all numbers in a file?
POSIXified. Perfect otherwise
1d
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
1d
revised How to convert text or character to hex in korn shell
a=() creates a compound variable in ksh93
1d
revised source multiple files and output one file
added 2 characters in body
1d
revised source multiple files and output one file
added 190 characters in body
1d
revised Negate exit code without using shell features
typos
1d
answered source multiple files and output one file
1d
comment source multiple files and output one file
Is the order of the output that matters or the order of the assignment? (is it OK for custom to show before name in the output as long as last is star and not '')?
1d
comment Stateful uniq functionality
sort limits its memory usage by resorting to temporary files. The awk solution stores all unique lines in memory so could end up using more memory than sort would.