Thursday, August 21, 2008

SED

Oh the power of sed

Here is how to remove the first certain number of characters

sed 's/^.........//' test2 > test3 where each . is a character.

also

cut -c10- test2

one way to cut the back is
rev filename | cut -b 2- | rev
which reverses the file, cuts the first two (which is the back) and then reverses it back

or you can use
cut -b 1-2 --complement bazaar.txt
this cuts from 1 to 2 (or the first two here) so if it was 5-13 it would cut the 5th to the 13th

Thursday, August 14, 2008

Rar 2.71

Here is how to install rar2.71 (needed for dvdrip)

download: Rar 2.71

chmod +x rarlnx271.sfx.bin
./rarlnx271.sfx.bin

sudo chown -R root:root rar
sudo mv rar /usr/local/rar2.71
cd /usr/local/bin
ln -s /usr/local/rar2.71/rar .
ln -s /usr/local/rar2.71/unrar .

Done!

Wednesday, August 13, 2008

Mutt and Mail

I haven't been able to send mail from my computer but I found this tutorial

http://ubuntuforums.org/showthread.php?t=565326

that is for setting up mutt to use your gmail, but it got just the command mail, working too!! I am pretty happy about that.