Small snippets to remember that I use from time to time.
for i in `find . -name "*.webm" -print`;
do
DIR=`dirname $i`;
NAME=`basename $i`;
ffmpeg -i $i -s 620x348 -ss 00:00:08.435 -vframes 1 ${DIR}/${NAME%.webm}.jpg;
done
echo -e "Use%\tAvail:\tMounted on:" ; df -hTP | sort -nr -k6 | grep -P '\d%' | awk '{ printf $6 ; printf "\t" ; printf $5 ; printf "\t" ; print $7 }'