479 reputation
27
bio website about.me/johnsyweb
location Melbourne, VIC, .au
age
visits member for 3 years, 8 months
seen Jul 15 at 18:12

Vimthusiast

On Down-voting

About two percent of my votes are down-votes, which I think is quite low. Down-voting is an important part of StackExchange and helps separate the good answers (and questions) from the not-so-good. If I have down-voted one of your posts, I will have left you a comment as to why. If you down-vote one of my posts, I ask that you, too, leave a comment as to why so that I can either improve my post or remove it. Thank you.


Nov
26
awarded  Yearling
Oct
4
comment How to group grep results?
Take a look at Ack betterthangrep.com
Jul
30
answered file $(ls /usr/bin/* | grep zip) command gives me errors. What's wrong?
May
11
comment loop curl get request bash
If ${author} includes spaces or similar characters, you will want to URL encode them, otherwise you may find you get errors like code 400, message Bad request syntax ('GET /authors?string=shakespeare, w.&proc=39 HTTP/1.1') from your HTTP server.
Apr
28
comment Can I insert sudo via the ^ command?
@Default: Welcome! "Thanks for your answer :)" is best expressed as a green tick next to the answer that helped you most. FAQ
Apr
2
comment Switch from grep to sed
@fred.bear: Thank you. And thanks for pointing out that I didn't need gsub. The check for 1987 could be localised to the end of column 2, thus: awk -F':' '$2 ~ /\.1987$/ {sub(/,.*/, ""); print}' students.txt
Apr
2
answered Switch from grep to sed
Mar
18
comment A problem with find and grep
This assumes GNU grep, of course.
Mar
18
comment How do I reuse the last output from the command line?
I use `!!` all the time.
Mar
18
comment A problem with find and grep
fg is a shell builtin, I recommend you chose a different name whether you implement this as an alias or (better still) a function.
Mar
17
awarded  Nice Answer
Mar
16
comment How can I print lines from file backwards (without using “tac”)?
It's a famous sed one-liner. See "36. Reverse order of lines (emulate "tac" Unix command)." in Famous Sed One-Liners Explained for a full explanation of how it works.
Mar
16
answered How can I print lines from file backwards (without using “tac”)?
Nov
26
awarded  Teacher
Nov
26
answered What is the difference between ls and l?
Nov
26
awarded  Supporter