Reputation
155,437
Next tag badge:
769/1000 score
208/200 answers
Badges
23 242 425
Newest
 Necromancer
Impact
~8.6m people reached

Mar
15
revised Where is “export var=value” not available?
added 158 characters in body
Mar
15
comment What does `\time`, `t\ime` and `\cd` actually do? (fun with backslashes in shells)
@JonasWielicki, it's that time is a keyword and that cd is not. (and if you had an alias for cd or time, that would be another matter). That cd is builtin or not has no incidence at this point (as far as the influence of quoting is concerned). Some shells however have a few builtins that are halfway between keywords and builtins as their parsing is done differently from other builtins. That's the case of export/typeset/declare. I should probably add some note about it in this answer.
Mar
15
revised What does `\time`, `t\ime` and `\cd` actually do? (fun with backslashes in shells)
added 8 characters in body
Mar
15
revised What does `\time`, `t\ime` and `\cd` actually do? (fun with backslashes in shells)
added 254 characters in body
Mar
15
answered What does `\time`, `t\ime` and `\cd` actually do? (fun with backslashes in shells)
Mar
15
revised Redirecting Output of print to multiples files in awk
added 16 characters in body
Mar
15
comment Perl one liner to find words longer than 63 characters
perl -lne 'print for /\w{66,}/g' (untested)
Mar
14
awarded  Nice Answer
Mar
14
comment Range arrays with custom step-size in Bourne shells
While {0..20} comes from zsh, AFAIK, {0..20..2} comes from ksh93. All 3 (zsh, ksh93, bash) implementations are different on several aspects. For zsh you want {0..20..-2} or {20..0..2} for backward ranges. Note that the seq method depends on the current value of IFS (and needs GNU seq).
Mar
14
revised Remove files with match only from some subdirectories
added 128 characters in body
Mar
14
answered Remove files with match only from some subdirectories
Mar
14
revised Sed from line 6 on from all txt files and being able to output all the results in a single file
edited body
Mar
14
comment Sed from line 6 on from all txt files and being able to output all the results in a single file
@Chris, I'd suggest asking a separate question for that.
Mar
14
comment how to delete (or keep) certain file extensions using busybox find?
@DmitryGrigoryev, there was no xargs then. Also, the persons using those systems at the time were usually the same as those writing software for them, and on a million $ system which was a privilege to be able to use, you wouldn't fool around creating filenames with spaces in them let alone newline, especially considering the max length of a filename was pretty short. The situation has evolved quite a bit since then.
Mar
14
revised Sed from line 6 on from all txt files and being able to output all the results in a single file
added 5 characters in body
Mar
14
revised Sed from line 6 on from all txt files and being able to output all the results in a single file
added 364 characters in body
Mar
14
comment Sed from line 6 on from all txt files and being able to output all the results in a single file
It also has security implications. You should never embed the {} in code arguments. That's enough of a known bad practice to deserve my downvote.
Mar
14
answered Sed from line 6 on from all txt files and being able to output all the results in a single file
Mar
14
comment Why did mv delete a file with mv id_rsa *.old?
ITYM most Bourne-like shells; the Thomson shell, csh, tcsh, zsh, fish don't leave the pattern unexpanded as it would be a silly thing to do (something broken by the Bourne shell)
Mar
14
comment how to delete (or keep) certain file extensions using busybox find?
@DmitryGrigoryev, actually the early Unix find implementations didn't take any option, all the -name, !... were added later on in the 70s.