529 reputation
29
bio website
location
age
visits member for 4 years, 10 months
seen Jun 7 at 17:54

Dec
18
awarded  Citizen Patrol
Dec
18
awarded  Nice Answer
May
3
comment How can I rename a file whose name is in itself a full path (e.g. begins with “g:\”)?
There's actually nothing invalid about this file name as far as NTFS is concerned, it's merely a limitation of Windows that prevents it from being properly referenced.
Mar
17
comment apt-get “Broken packages”
It would be helpful if you posted your complete sources.list (including anything from sources.list.d/), and also your apt-preference (/etc/apt/preferences*) and the output of dpkg -l '*' | grep ^h (if any).
Jul
10
awarded  Caucus
May
22
comment Test if a package is installed in APT
While this is doubtless correct I find that dpkg-query -l "$package" | grep -q ^.i is usually sufficient (and easier to remember).
Apr
27
answered Is there any way to keep text passed to head, tail, less, etc. to be colored?
Dec
15
comment logout without being at login shell
Just kill the login shell. Identifying the PID is the only issue.
Dec
6
comment How to check if a directory exists in Windows?
@grawity: If it exists but is a file the script will probably fail later when trying to use it as a directory, which probably isn't what you want.
Nov
29
awarded  Nice Answer
Nov
4
comment Mass Rename Files with bash
In fact, I'd be much better with find -> generate shell code. The reason for this is that find is less likely to mangle filenames than ls. In the real world I'd just use mmv for this, or a while read command substitution loop pulling nul-terminated filenames from find. Or, if the files are nicely globbable, a simple for loop as glenn used in his answer.
Nov
4
comment How to use Grep in Unix command line?
It depends on how you define a word boundry, of course.
Nov
4
comment Mass Rename Files with bash
ls piped to sed piped to sh? My brain is melting.
Oct
14
comment Is there any GUI tool to configure /etc/fstab?
The old kfstab was a good tool for this, but it's sadly bitrotten by now. There're fwfstab and gfstab as well, but they don't seem maintained. In the future I expect the excellent palimpsest will evolve the ability to actually edit fstab, then all will be well.
Oct
14
comment What is naming convention for subtitle files?
What if there's more than one file for the same language? E.g., multiple translations.
Sep
29
awarded  Yearling
Sep
6
comment Why is 'grep -i' so slow? How to do it faster for ASCII?
Case insensitivity is hard, especially if you're doing it on unicode input.
Aug
16
revised Can I display a text file in multiple vertical panes?
more closely match requirement and fix leading whitespace
Aug
16
answered Can I display a text file in multiple vertical panes?
Jan
26
comment List/remove files, with filenames containing string that's “more than a month ago”?
As it turns out you can use -newerXY where Y is t to specify a timestamp directly (for GNU find it's GNU date -d format) to avoid the need to create an intermediate file. This will be a little faster, as Rich mentions.