Anyway, a nice dinner for myself and a good start of two-days-off weekend, finally…
I need to write a journal by week, so I’d like to create a file
"week<current week of year>.<year>.<the first date of
this week> – <the last date of this week>, then alias to "j". Googled a little bit, and figure it out, sweet!!
1. Current week: date +%U
2. the first date of this week: date -d "-$(date +%w) days" +%m.%d
3. the last date of this week: date -d "$((6-$(date +%w))) days"
4. whole command will be:
alias j="vi week`date +%U`.`date -d "-$(date +%w) days" +%Y.%m.%d`-`date -d "$((6-$(date +%w))) days" +%m.%d`"
" ` " is the symbol under "~", not quote though.
Already been there for 3 weeks, everything is on Linux, a lot of things need to grab from deep memory, still hanging there.
Need to setup a ubuntu environment at home, I put it into a vm box, works great on my Win 7 host so far. Installed pine, media-wiki, LAMP, ready to rock.
Still need to practice with vi, more commands need to be memorized.