Reputation
276
Next privilege 300 Rep.
Create new tags
Badges
4 15
Impact
~26k people reached

Apr
4
awarded  Notable Question
Mar
25
awarded  Notable Question
Feb
8
awarded  Popular Question
Oct
17
awarded  Popular Question
Oct
13
awarded  Popular Question
Sep
22
awarded  Popular Question
Jul
20
suggested rejected edit on How can I get my external IP address in bash?
Jul
20
comment How can I get my external IP address in bash?
For use in bash —the intent of the OP—, you cannot do without the -s option mentioned in other answers.
May
27
revised Efficient todo / project / task manager application
added 10 characters in body
May
25
awarded  Yearling
May
21
comment How to remove duplicate lines with awk whilst keeping empty lines?
I did not measure any significant time difference with my 288-line test file. However, your code would certainly catches the prize for being most readable.
May
21
awarded  Critic
May
21
accepted How to remove duplicate lines with awk whilst keeping empty lines?
May
20
asked How to remove duplicate lines with awk whilst keeping empty lines?
May
20
comment How to get only the unique results without having to sort data?
The awk trick is also well explained here.
May
6
comment how can I add (subtract, etc.) two numbers with bash?
The $((..)) arithmetic evaluation is executed by bash, whereas expr is executed as a separate process. Hence, the latter is slower than $((..)). Use expr only on systems where arithmetic evaluation is not supported (sh!=bash).
Apr
28
awarded  Excavator
Apr
28
revised How to check if there are no parameters provided to a command?
Edit is explained in most voted comment. The original would not work without warning in bash.
Apr
28
suggested approved edit on How to check if there are no parameters provided to a command?
Apr
2
comment How do I get the MD5 sum of a directory's contents as one sum?
Differing files are reported as well with this command.