15,790 reputation
12753
bio website
location United States
age
visits member for 1 year, 9 months
seen 2 days ago
stats profile views 481

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


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.
Mar
20
comment store command before pressing ctrl+c, revive afterwards
I think # is a comment character in every shell that I have seen, even weird ones like csh. It's even in the POSIX spec (see item 10.). I'd love to know if you've seen shells where # is not a comment.
Mar
20
comment store command before pressing ctrl+c, revive afterwards
Instead of a command I just use a #, which works as long as you have not told your shell to ignore comment lines.
Mar
18
comment Is it possible to use indirection for setting variables?
In bash, typeset is obsolete and its replacement is declare. They are more or less identical.
Mar
13
awarded  Enlightened
Mar
13
awarded  Nice Answer
Mar
1
comment Tmux not sourcing my .tmux.conf
tmux is not ssh. You need to restart tmux, or manually source the conf file yourself. Restarting an ssh session won't do anything.