Blog Archives

hmac

Posted in bash, c, hmac, perl

color grep less

Add this in your bashrc alias grep=’grep –color=always’; alias less=’less -R’;

Posted in bash, linux

bash for loop through numbers

# for i in `seq 1 10`; do mysql -uusername -ppassword database_name -e “SELECT COUNT(*) FROM table$i”;done;

Tagged with: , ,
Posted in bash, linux

bash for loop through text

# for i in `echo “table1 table2 table3″`; do mysql -uusername -ppassword database_name -e “SELECT COUNT(*) FROM $i”;done;

Posted in bash, linux