Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
3
Newest
 Supporter
Impact
~76k people reached

  • 0 posts edited
  • 0 helpful flags
  • 12 votes cast
Jul
2
comment How to compare two dates without using Stat?
It worth noticing that touch accepts date in mostly free form, human readable format, i.e. next Thursday would work as well as ISO 8601 date. For more information see Date input formats section of GNU coreutils documentation.
Dec
14
comment Replace %20 with a space in filenames?
For anyone interested in possibilities of extended parameter substitution, I would suggest to read a relevant section at Greg's wiki.
Dec
14
comment Replace %20 with a space in filenames?
@DanijelJ, the "${x//%20/ }" part utilizes extended form of parameter expansion which is available in contemporary bash and other shells. Simple parameter expansion looks like ${parameter} and by adding various modificators after the parameter you can tell your shell to perform additional operations on parameter value. The ${parameter/pattern/string} form replaces a part of parameter that matches the pattern with the string, if pattern begins with / all matching parts are replaced.
Feb
13
awarded  Supporter
Jan
17
awarded  Nice Answer
Oct
29
awarded  Teacher
Oct
28
answered How can I get my external IP address in bash?