Reputation
Next tag badge:
540/400 score
76/80 answers
Badges
20 153 313
Newest
 Nice Answer
Impact
~5.2m people reached

Aug
29
reviewed Leave Open What is the problem of giving the right to use sudo vim?
Aug
29
reviewed Close Broadband Connection In Linuxmint
Aug
28
awarded  Enlightened
Aug
28
awarded  Nice Answer
Aug
28
revised $@ except the 1st argument
added 200 characters in body
Aug
28
revised $@ except the 1st argument
missing quotes.
Aug
28
answered Making a *nicely* formatted list of number of files in directories - awk & sed probably
Aug
28
comment How do I go to the last line where I entered text in tmux?
add something specific in your shell prompt like some special character
Aug
28
revised Get very next word of a substring in a string
added 67 characters in body
Aug
28
comment Get very next word of a substring in a string
Note that with GNU grep and -P, \w and [[:alnum:]] only includes non-ASCII alnums in single-byte locales. You may want to add (*UCP) to the start of your regexp so it also works in UTF-8 locales (try with -where=España for instance).
Aug
28
revised Get very next word of a substring in a string
added 312 characters in body
Aug
28
comment Get very next word of a substring in a string
@linux_inside, then change \w* to \S+.
Aug
28
answered Get very next word of a substring in a string
Aug
28
comment Silently timeout command in zsh
Related: How can I kill a process and be sure the PID hasn't been reused. As shown there GNU timeout is not foolproof and may kill the wrong process.
Aug
28
comment What command should I use to move these particular elements?
Also note that if some of the files in the current directory are symlinks to directories, it will also look for avi files in the directory they point to (in that, and the above comment, that's different from what you'd get with find . -mindepth 2 -maxdepth 2 -name '*.avi' -exec mv -t . {} + (with GNU commands)
Aug
28
comment What command should I use to move these particular elements?
Note that it won't include hidden avi files or avi files in hidden directories.
Aug
28
answered Rename files in directory according to name of directory
Aug
28
comment weird characters in bash shell
@Esref, no, they're more probably (U+2018 LEFT SINGLE QUOTATION MARK) and (U+2019 RIGHT SINGLE QUOTATION MARK). Since only one replacement character is being displayed, the terminal emulator is probably correctly configured in UTF-8 but the font it's using is lacking those characters. What's the terminal emulator?
Aug
28
awarded  Nice Answer
Aug
27
comment bash: escape individual lines from `-x` echoing
Or to avoid perl (and problems with multi-line commands): +() { :;} 2> /dev/null; xtrace() { (PS4=; set -x; + "$@";{ set +x; } 2> /dev/null); "$@";}