Pario TechnoBlob
About Posts

Tag: perl

Set photo filedate and time according to EXIF info Sometimes a image files creation date is wrong and have to be corrected. This is a script I use to set a files creation date to the photos date retrieved from EXIF tags. The...
Dec 5, 2007 1:36PM
Rename files in folder Oneliner to rename files/directories. It converts ” ” into “” and the characters to lower-case. <br /> $> perl -e 'while(< *>) { $old=$; s/ +//g;...
Oct 28, 2007 12:58AM
Using TCP Wrappers to deny daemon access in specified hours By doing the following you can deny certain daemons to be available in specified hours by using hosts.allow and hosts.deny. In my example I will be using the vsftpd daemon by...
Oct 25, 2007 8:30PM
Recursivly find and edit files in place This is a simple oneliner to replace words inline using perl :) # for i in find ./ -name foo ; { perl -p -i -e “s/oldword/newword/g” $i ;} You’ll need bash and perl.
Oct 25, 2007 9:53AM
«« « 1 2 3 4 » »»
Posts About
© 2007-2020 Pario TechnoBlob
Powered by Axiom