From Relearn 2014
Introduce yourself
——————
echo I am `whoami`. It is `date` and we are on $HOST, in the directory `pwd` | espeak
or
echo I am `whoami`. It is `date` and we are on $HOST, in the directory `pwd`
or, on OS X:
echo I am `whoami`. It is `date` and we are on $HOST, in the directory `pwd` | say
What time is it in Sao Paulo at 18:47 in Brussels?
————————————————–
TZ=America/Sao_Paulo date “+%F %R (%Z%z)” -d ‘TZ=”Europe/Brussels” 18:47’
Get the alphabetical list of words in a text
——————————————–
cat text.txt | tr ” ” “n” | sort | uniq
Do a cadavre exquis of several texts
————————————
cat a.txt b.txt c.txt > abc.txt
Make a top 5 of your fattest files
———————————-
ls -l -S *.* | head -5
Create an animated gif of system icons
————————————–
convert /usr/share/pixmaps/*.{png,xpm} /tmp/animated.gif
Make a randomized playlist of a sound sytem and listen relax
————————————————————
find /usr/share/sounds/ -type f | shuf > /tmp/playlist.list && mplayer -playlist /tmp/playlist.list
Make a parody of Wikipedia
————————–
wget -k -O /tmp/o.html https:/
Make a poem out of your computer memory
—————————————
sudo dd if=/dev/mem 2> /dev/null | cat | strings | shuf | head
Rank the commands by popularity
——————————-
history | awk ‘{print $2}’ | sort | uniq -c | sort -rn | head