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...
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;...
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...
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.
««
«
1
2
3
4
»
»»