Reputation
50,267
Next tag badge:
107/100 score
19/20 answers
Badges
13 145 237
Newest
 Necromancer
Impact
~8.7m people reached

May
13
comment Bash one-liner to delete only old kernels
I suggest (or, if you prefer, request) expanding this to include the explanation. :)
May
13
reviewed Looks OK How to open shared SMB resources in the form “\\host”?
May
13
revised How to open shared SMB resources in the form “\\host”?
deleted 6 characters in body; edited tags; edited title
May
13
reviewed Leave Closed How to fix Update error: Wrong sources.list entry or malformed file?
May
13
comment How to fix Update error: Wrong sources.list entry or malformed file?
@DavidFoerster It's not necessary to post code externally when it contains URLs. The 2-link limitation doesn't apply to non-linkified URLs inside code-formatted spans or blocks (since they are not actually links). Thus, pasting text from the terminal into a question, selecting it, and pressing Ctrl+K (or clicking the {} tool in the editing toolbar) will both format it properly and allow it to be submitted when it contains URLs. Links inside code spans (begun and ended with the ` character) will also go through, but that should be avoided for multi-line text.
May
13
reviewed Reviewed Is it possible to use two external monitors for my Thinkpad T440p using a Lenovo Ultra Dock?
May
13
reviewed Reviewed All data gone after upgrade from Ubuntu 14.04 to 15.04 through bootable installer
May
13
reviewed Approve How to remove KDE Connect dependecies in Cinnamon or any other DE?
May
13
reviewed Approve Can't run minecraft
May
13
reviewed Looks OK Ubuntu Touch HTML5 app Orientation lock
May
13
reviewed Looks OK How bumblebee Nvidia works in Ubuntu?
May
13
reviewed Close Google drive not working
May
13
reviewed Looks OK How to set up mail in terminal to use email
May
13
reviewed Approve Setup 3rd/4th level characters (typographic layout)
May
13
reviewed Approve Unable to login from User account or Guest account (not a duplicate question)
May
13
comment after 12.04 upgrade: can't log in although password is correct
possible duplicate of Ubuntu gets stuck in a login loop
May
12
revised How to get a basic script to run on startup
improved code formatting
May
12
comment How can I use “find” in a shell script to search from the current directory?
Since you initially suggest test and [...], which aren't equivalent to the [[ shell keyword in the example, you may want to clarify how syntax should be modified for test or [. Unlike [[ (where it works either way), $a should be quoted when passed as an argument to test/[, unless known not to contain whitespace. Also, whether or not [[ is used, if the filename read by read -r a contains leading or trailing whitespace, it will be trimmed off--so unless that is desired, use IFS read -r a to prevent it.
May
12
comment How can I use “find” in a shell script to search from the current directory?
According to Gilles, it can improve performance due to buffered I/O. That is, before the output is read, find will continue walking the directory hierarchy. I suppose that, if there are many more directories to search but no other matches, the performance improvement could be significant.
May
12
comment How can I use “find” in a shell script to search from the current directory?
Since Ubuntu has GNU find, -print -quit can be added to the end of the find command to slightly improve performance. You could even print only a blank line: -printf '\n' -quit This doesn't change find's exit status, of course; piping to grep -q remains necessary.