Reputation
509
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
Badges
2 8
Impact
~19k people reached

  • 0 posts edited
  • 2 helpful flags
  • 53 votes cast
Dec
17
answered How to name a file in the deepest level of a directory tree
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
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