msgbartop
Tips, notes, HOWTOs
msgbarbottom

06 Dec 08 Remove Whitespace From The End Of Lines

Nice sed tip to remove extra whitespace at the end of lines in a file.

sed -e 's/ *$//' <file>

Tags: ,

05 Dec 08 Automatically Connect When A Host Comes Up

Ping a host until it answers and then connect.  I actually have this in a script that will use the first argument as the host.

while ! ping -W 1 -c 1 <hostname or IP> 2>&1 >/dev/null; do true; done && sleep 15; ssh <user>@<hostname or IP>

via The Linux Blog

Tags: ,

SEO Powered by Platinum SEO from Techblissonline