Archive for the ‘linux’ Category
Change all the file names in a directory
If you have a directory of files with the same substring sayjoke1.html, joke2.html, joke3.html … and you want to rename themriddle1.html, riddle2.html, riddle3.html this tool does that.
It is a PERL script, it will ask you for the old and new strings and changethe files in the directory in which the script is located.
PERL script to fetch your IP and email it to yourself
I have two older scripts for grabbing your ip and emailing it to you. Getip.pl and Getip2.pl And today I put together Getip3.pl.
The first script is the bare minimum needed and works on Linux. Just change it to put in your email address and run it as a cron job.
The second script works on Windows or Linux and is more robust than the first one. Again change the email information and then run it as a cron script under Linux or in the Windows scheduler if you are running Windows.
The third script works on OSX. Change the email to and from addresses. Install it as a cron job to have it run automatically on your computer. (MacDevCenter Cron job how to is at bottom of the page )