Reputation
22,978
Next tag badge:
912/400 score
77/80 answers
Badges
3 53 83
Newest
 Enlightened
Impact
~1.0m people reached

Apr
8
comment How can I change 'change' date of file?
Setting arbitrary ctime is not easy to do. Related question on SO.
Apr
8
comment command like wc but with tee behaviour
You probably want >(wc -l >&2) unless you want the wc output to get bzipped as well.
Apr
8
comment command like wc but with tee behaviour
@MajidAzimi It's called Process Substitution.
Apr
8
comment How to act on output from a failed command
What are you trying to accomplish? Just sudo apt-get install python-setuptools and be done with it.
Apr
7
comment How does this shell command work?
Just wanted to point out the UUOC (useless use of cat). ssh b@B 'cat >> .ssh/authorized_keys' < .ssh/id_rsa.pub is better.
Apr
5
revised Problem with find and variables
added 78 characters in body
Apr
5
revised How to make the terminal display user@machine in bold letters?
deleted 269 characters in body
Apr
5
answered Problem with find and variables
Apr
5
comment Variable substitution into a sed script
Instead of sed -i you should look into ed as well. sed -i breaks links and is not very portable but if you don't have to worry about either, then it may be fine.
Apr
5
awarded  Enlightened
Apr
5
awarded  Nice Answer
Apr
5
comment Quick way to include a directory path when calling mv?
I remember seeing a question with an accepted answer nearly identical to mine. However I cannot find it so I've answered your question for now, at least until someone stumbles across the link.
Apr
5
answered Quick way to include a directory path when calling mv?
Apr
4
answered Is it possible to customise the prompt to show the if there are any background jobs?
Apr
2
comment What is a good X terminal not from a major window environment?
All the times I have tried it, I never have found transparency in terminals to be anything except distracting eye-candy at the expense of usability. Having random background noise bleed through the text makes it harder to read, even if you apply a generous gaussian blur to the background layer. If you really desire light-weight or minimalist, I'd recommend dropping this "feature" from your shopping list.
Apr
2
answered What is the difference between $var and “$var”?
Apr
2
comment How can I delete lines that has an empty first column?
You should be asking the OP whether it matters, not me. I'm just here to point out that the /^\s\s*/d will let lines like |... slip through whereas /^\s*|/d will not.
Apr
2
comment How can I delete lines that has an empty first column?
How about /^\s*|/d?
Apr
2
comment How can I create a file with multiple lines from the command-line?
Best answer, IMO.
Apr
2
comment Recursively search folder but exclude svn subfolder
or perhaps you want to use --recursive . instead, seeing as the OP already has GNU grep.