Akbar….a few code of life…

Botak, ngejeans…it’s me :)

Archive for the ‘Linux’ Category

sed  ‘/caritextini/d’    filename.txt > filename-clean.txt

OR

grep -v caritextini filename.txt > filename-clean.txt

howto remove ^M on text file ?

on vi type:

:%s/ctrl-V+ctrl-M//g

make modules SUBDIRS=drivers/char/tpm
make modules_install SUBDIRS=drivers/char/tpm

Using rsync with ssh

rsync –delete -avz -e ssh login@yourserver.com:/home/user/dir/ ./dir

whois -i org `whois AS12990 | grep organ | tail -n1 | awk -F : ‘{print $2}’` | grep inetnum

Cannot create QuickStats table. Database user does not have CREATE priviledge.