595 reputation
18
bio website
location Kiev
age
visits member for 1 year, 10 months
seen Oct 15 at 11:55

Oct
7
comment How does awk '!a[$0]++' work?
So the essence is this: the expression in the single quotes is used by awk as a test for each input line; every time the test succeeds awk executes the action in curly braces, which, when omitted is {print}. Thanks!
Oct
7
comment How does awk '!a[$0]++' work?
Answer accepted with the minor edits.
Sep
29
comment Disable Keyboard & Mouse input on unix (under X)
Is it possible to eat X input events with a standard X toolset and a shell script?
Nov
14
comment xautolock: how to auto-unlock on user activity?
OK, I figured I could configure xscreensaver to launch an arbitrary program (and have it killed on user activity) but how do I tell the xscreensaver not to blank the screen and have the screen updated as per normal?
Nov
14
comment xautolock: how to auto-unlock on user activity?
I need to run a pair of custom scripts: the first is run after the idle timeout (i.e. in place of a regular screensaver) and the 2nd is run when activity is resumed.
Nov
8
comment How to fill 90% of the free memory?
Why would a unix swap while there is available RAM? This is actually a plausible way to evict disk cache when need be.
Dec
9
comment What Windows-related files are valueless to *nix users?
One useful find flag here is -newer used like this: find /mnt/windowsfs \! -newer "/mnt/windowsfs/reference/filename" | xargs rm -f
Dec
5
comment creating abbreviations for commonly used paths
I agree, csh is mostly terrible, but "default" and "any" are quite different things anyway.
Dec
5
comment creating abbreviations for commonly used paths
Strictly speaking that's not for any shell. In csh the variables are set with the set command.