Other links
Random (Thoughts?)
Although I am working with VDX.TV, I do a lot of pet projects in my spare time. It can include anything. In these works, I gain a lot of experience. Links to such recent experiences are given below.
Intro
Tricks in BASH
-
Get filename without extension
$ echo ${filename%.*}
-
Get extension only
$ echo ${filename##*.}
**Does not works with tar.xz files
-
Quick directory tree
$ find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
-
Sync system time with google.in
$ sudo date -s "$(curl -sD - google.in | grep '^Date:' | cut -d' ' -f3-6)Z"