Reputation
8,739
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 27 55
Impact
~394k people reached

Aug
25
comment Why pipe to cat only to redirect?
What @pabouk said: redirections can appear anywhere on the command line, at least in GNU bash, so "reading left to right" is not a valid argument for using cat instead of a redirection.
Aug
12
awarded  Popular Question
Aug
8
comment Undo a mass rename of files in a directory?
Do you still have the output from running that script? If so, it might very well be possible to make a script that undoes the damage, because with -v, mv will print the original and new file name for every file that gets moved or renamed.
Aug
8
comment Undo a mass rename of files in a directory?
@Bytor A better solution would have been to use Robin Barker's rename (packaged by many distributions) like so: rename 's/DarkDream//' *
Aug
8
comment Is `~/Documents` a relative or an absolute path?
Of course, the kernel would have no idea what $HOME means, just like it has no idea what ~ means. I do however find the claim that ~ expansion is done by the shell to be dubious; most applications support this, which points toward the C library rather than the shell. Environment variable expansion however is a feature of the shell; you can open ~/somefile.odt in LibreOffice, but not $HOME/somefile.odt, even if LibreOffice was started from a shell within which $HOME is properly set.
Jul
31
accepted How to verify that package-installed files match originals?
Jul
20
awarded  Nice Question
Jul
18
awarded  Popular Question
Jul
16
awarded  Guru
Jul
8
awarded  Notable Question
Jul
3
awarded  Nice Question
Jun
11
comment Linux Fedora 20, Adobe Flash plugin
We don't use SOLVED tags to indicate answered questions here. Instead, you may want to post the solution (possibly including what led you up to it) as a self-answer, and accept that answer. That will indicate to the community that the question has been resolved to your satisfaction, while clearly separating the question from the answer.
Jun
8
comment Debian jessie without desktop
@dr01 This answer isn't complete without mentioning xfce4. Those three pretty much cover all major setups.
Jun
8
comment Debian jessie without desktop
@laguce After changing the package repository settings, you must apt-get update before you can meaningfully do anything else. Did you do that?
Jun
3
awarded  Popular Question
May
29
comment Find all words beginning with Q
@TobySpeight "to beginning and end of pattern" doesn't seem to be quite what the OP wants, though.
May
29
comment Find all words beginning with Q
Did you try this? (1) The *.py will be expanded by the shell, which will cause find to complain if it expands to more than one file name. (2) grep --color Q* {} will execute grep on each matching file (not too bad) highlighting every place where Q occurs (not what the OP wants, because this will match the word pkQuest just as much as the word Quest). Please take care to ensure that your answers match the requirements stated in the question, testing them if you are unsure.
May
26
comment Where is the Programmer's manpage for the open C Function?
You can also use apropos, or man --names-only with one of --regex or --wildcard. See man man.
May
12
comment List all the files ending with 10 or 11 or 12
You can use shopt -s dotglob (in bash) if you want to see dotfiles as well.
May
12
revised List all the files ending with 10 or 11 or 12
As pointed out, [] specifies a set, not a range