Change the Extension of Multiple Files in Linux

In this example, we will change all files with extension ‘.info’ to ‘.txt’. Rename all *.info files in one folder…

Using PHP’s Curl functions behind a Proxy

Using PHP’s Curl functions even if the net is accessible only thru a proxy. This is the only way curl…

Changing separator with Perl

This will join all lines of a file together. Sometimes I have a list of something in a file, one…

Object or Array

Find whether the given variable is an object,or is an Array? function isArray(testObject) { return testObject && !(testObject.propertyIsEnumerable(‘length’)) && typeof…

CVS Through Proxy

Command to import a CVS project’s code through a proxy Checkout code from remote server(No Proxy) cvs -z3 -d:ext:binnyva@nexty.cvs.sourceforge.net:/cvsroot/nexty co…

Using CVS from Command Line

cvs -d /var/www/cvs init export CVSROOT=’/var/www/cvs’ cd mypoject_folder cvs import -m “My Project” mypoject binny main #cvs import -m “<Message>”…

Command to Compress/Uncompress tar.gz and tar.bz2 files

Compress folder Test/ to Test.tar.gz tar czfv Test.tar.gz Test/ czfv = ‘Compress Zip File Verbose’ If you want bzip files,…

Remove CVS Information from a Folder

find -name CVS -exec rm -rf {} \; NOTE: Works only with bash

Submition to Social Bookmarking sites.

<div id=”social-bookmarking”> <strong class=”social-tagline”>Share this…</strong> <ul> <li><a href=”http://del.icio.us/post?url=http%3A%2F%2Fwww.technacular.com%2F2007%2F02%2F12%2Fcollection-of-sites-providing-free-web-icons-and-buttons%2F&title=Collection+of+Sites+Providing+Free+Web+Icons+and+Buttons” title=”del.icio.us”><img src=”http://www.technacular.com/wp-content/plugins/sociable/images/delicious.png” title=”del.icio.us” alt=”del.icio.us” class=”sociable-hovers”></a></li> <li><a href=”http://digg.com/submit?phase=2&url=http%3A%2F%2Fwww.technacular.com%2F2007%2F02%2F12%2Fcollection-of-sites-providing-free-web-icons-and-buttons%2F&title=Collection+of+Sites+Providing+Free+Web+Icons+and+Buttons” title=”digg”><img src=”http://www.technacular.com/wp-content/plugins/sociable/images/digg.png” title=”digg” alt=”digg” class=”sociable-hovers”></a></li>…

Backup Using Rsync

Backups the script folder to a remote location. Original Article… rsync -avze ssh Scripts/ binnyva@binnyva.com:backup/Scripts/