Reputation
10,303
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
2 29 52
Newest
 Nice Answer
Impact
~850k people reached

Jul
18
comment How do I interactively type \r\n-terminated query in netcat?
Nice find, didn't know about -C.
Jul
14
comment How To Make A Sparse File On Android With Terminal
Try to be more specific about "some kind of error".
Jun
8
comment How to compress multiple files with similar names?
@Viritys I have edited my answer to reflect your update, note how $pfx* is now $pfx[.\(]* to force the first character after the prefix to be . or (.
Jun
8
comment How to compress multiple files with similar names?
Oh yes... since you used the underscore in your example I assumed no whitespaces. You're welcome!
Jun
7
comment How to compress multiple files with similar names?
Fair enough, updated!
Mar
10
comment My bash_prompt cannot find a shell script
This is strange, it works for me and it's fairly easy to reproduce: open a shell, evaluate your function look_for_autorun() {...}, touch autorun.sh; chmod +x autorun.sh and look_for_autorun. I get a positive reply.
Dec
19
comment Is it possible to edit tags with cmus?
@th1rdey3, I ended up using Ex Falso since I couldn't find any suitable command-line alternative.
Oct
22
comment Disable vim plugins for large files
This goes beyond my Vim expertise but I'm sure you can write your own function that disables "slow" plugins and invoke it whenever you want, bind it to a keystroke or even manage to automatically trigger it for certain file sizes/extensions. This answer is just a better alternative to renaming your .vimrc file every time.
Oct
1
comment Prevent Screenshot in gnome using xmodmap
Probably useful: unix.stackexchange.com/a/3737
Sep
17
comment Does bash have a hook that is run before executing a command?
@CoreDumpError, since you've refactored the code you should negate all the conditions: the first one hence becomes: [ -z "$COMP_LINE" ].
Aug
19
comment Enter response once prompt returns?
@mjb: What about Expect?
Aug
15
comment Unusable open souce ATI driver on Debian Jessie
@W00d5t0ck: I posted a solution, quite late... but maybe you can still find it useful.
Jul
23
comment Remove a certain line from Bash history file
@chiliNUT: Just start your command (e.g. vim ~/.bash_history) with a space; commands starting with a space usually don't get logged (see $HISTCONTROL).
Mar
6
comment Bash Script to repeat every word in a line?
Shorter: sed -r 's/\S+/& &/g'.
Jan
9
comment Can one redirect too much data?
My concern would rather be how to handle a 50GB file...
Dec
24
comment Remove all *.foo in directory tree
@user877329, I see your point, but in my experience these tools are good for getting things done quickly and easily, but if you need to do it right then you often have to start developing your own tool.
Dec
24
comment Remove all *.foo in directory tree
@user877329, there's the -exec action that can be used for that purpose.
Dec
23
comment Remove all *.foo in directory tree
@Rob, man find: If no paths are given, the current directory is used.
Dec
1
comment What is the Discard Protocol actually used for?
Really?
Jun
2
comment Filter file when a column is in whitelist
Ahhh, yes, because I was testing with numbers...