18,035 reputation
13664
bio website
location United States
age
visits member for 2 years, 8 months
seen 7 hours ago

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


Jun
25
comment “Ungrep” - which patterns aren't matched
@Kaz Here's the POSIX quote: "The application shall ensure that a multi-dimensioned index used with the in operator is parenthesized. The in operator, which tests for the existence of a particular array element, shall not cause that element to exist. Any other reference to a nonexistent array element shall automatically create it." It can be found by scrolling a paragraph or two up from here.
Jun
25
revised Why using more threads makes it slower than using less threads
rewording for clarity
Jun
18
comment Split an existing prompt command line in a few lines
If you are at an interactive command line prompt, is there any particular reason you need to do this besides making your shell history look prettier? Functionally, extra newlines make no difference to the shell. If you are typing a long complex shell snippet, it's best to use an editor. Look into the fc command as well - it is available in nearly all shells.
Jun
18
awarded  Enlightened
Jun
18
awarded  Nice Answer
Jun
12
awarded  vim
May
15
awarded  Taxonomist
Apr
29
comment How to remove the (1) from filenames using the find command
@hobbes That's odd. As another test to make sure sh isn't doing anything funny, try replacing the entire sh -c '...' part with pwd and see if you get the same thing as your previous run with pwd inside the '...'.
Apr
26
comment How to remove the (1) from filenames using the find command
@hobbes3 I'm wondering if -execdir is working as it should. Try inserting a pwd; right before the for arg to see what directory the mv is being run in.
Apr
22
comment How to remove the (1) from filenames using the find command
Hmm, that's odd. Do you have the exact command and error message? Try using sh -xc instead of sh -c for extra information.
Apr
22
comment How to remove the (1) from filenames using the find command
@hobbes3 Are you sure? There shouldn't be any folder paths in the mv command since -execdir is used. Compare the output of find -exec pwd \; and find -execdir pwd \;. How are you running it?
Apr
16
revised Reference prior command output / terminal screen contents in current command line
made question title clearer, hopefully
Apr
5
comment Can I make `rm` interactive only when using globbing? (in either bash or zsh or both)
@Pureferret no, don't use this answer.
Mar
30
awarded  Good Answer
Mar
25
comment What does a “[1]+ Exit 1” response mean?
What nohup do you have? My coreutils one does not mention & at all in the man page. I don't think there are any "normal" shells nowadays that lack the & operator.
Mar
22
awarded  Enlightened
Mar
22
awarded  Nice Answer
Mar
20
comment Show jobs count only if it is more than 0
Is the tr -d ' ' necessary?
Mar
20
comment Show jobs count only if it is more than 0
Related question.
Mar
20
comment store command before pressing ctrl+c, revive afterwards
It's not in POSIX, but works with bash and anything that aims for bash compatibility.