
kbo kbo@identi.ca
12 years ago To: Command Line Magic, Public
@climagic find . -type f -exec du -m {} + | awk '{ sum += $1; } END { print sum / FNR; }' # average file size (recursive) in MB13 years ago To: Public
just wrote my first kernel module (gpio-mcp23016) ... and it works :)13 years ago To: Command Line Magic, Public
@climagic lsblk # list block devices (holders and slaves). I thought about writing a shell script for this (requires util-linux >= 2.19)14 years ago To: Public
while :; do wget -q -O- http://mpd:8000 | aplay -; sleep 1; done <-- works MUCH better for me than streaming via esound-esd !mpd14 years ago To: KDE, Public
Finally upgraded to !KDE 4.7.3 and so far everything just works(tm). Thank you very much for the great work!14 years ago To: Bryan Bishop, Public
@drtelnet http://sprunge.us/KcYP (updated unix-filename-rubout, this one seems to work)15 years ago To: Public
@otakukuma You just made my day :) I usually use $RANDOM for that task, but your number could be even more randomly chosen.15 years ago To: Public
15 years ago To: Command Line Magic, Public
@climagic sry, wrong key. I prefer using "for i in *; do ..." instead of "ls -1 | xargs"15 years ago in Morston, England, United Kingdom To: Command Line Magic, Public
@climagic typo: it is tar zxvf !$. there are more readline macros like !! (prev line), !!^ (first arg of prev line), ...