Skip to content

Instantly share code, notes, and snippets.

@johanforssell
Created April 15, 2013 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johanforssell/5386976 to your computer and use it in GitHub Desktop.
Save johanforssell/5386976 to your computer and use it in GitHub Desktop.
Shell-alias 'week' för att kolla med http://vecka.nu vilken vecka det är. Kommer att gå sönder när de designar om sidan.
alias week="curl --silent --url http://vecka.nu | egrep '<div style=\"color: #066EB0; font-family: Arial; font-size: 220pt; line-height: 220pt; font-weight: bold;\">[0-9]*</div>' | sed -e 's/.*>\([0-9]*\)<.*/\1/'";
@johanforssell
Copy link
Author

Or just use

alias week='date +%V'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment