Uncategorized

Replace text inside a file

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Largest files on a directory or partition

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Recursively copy files and their permissions

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

L.A. freeways top list of worst bottlenecks

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Telnet Based Server Testing

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

mrtgsql

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Recover the root password on Solaris

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Stir the entropy pool in FreeBSD 4

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Make an ISO image

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More

Uncategorized

Passwordless Logons with SSH

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See:…

Read More