See your most used shell commands
history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr
DZone Snippets > peter > bash
12158 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Peter Cooperx http://www.petercooper.co.uk/
history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr
#!/bin/sh echo $1 cd /home/virtual/$1/var/www tar czfv /home/backups/$1.tar.gz cgi-bin html > /dev/null chmod 777 /home/backups/$1.tar.gz echo Backed up $1 to /home/backups/$1.tar.gz
#!/bin/sh rm -f /home/backups/old/* mv /home/backups/*.gz /home/backups/old/ find -type l -maxdepth 1 -name '*.*' | xargs -n 1 basename | xargs -n 1 ./backup
for f in *.htm; do mv $f `basename $f .htm`.html; done;
cd -
pushd /newdirectory
popd