Pario TechnoBlob
About
Posts
Tag: perl
Rename files in a folder to lower-case using perl
This is a simple oneliner to rename files to lower-case using perl # perl -e 'rename($
, lc) || warn "$
: $!\n" for @ARGV' * You can also do this recusively using find...
‘tail -f’ with highlight
This is an example of how you can use tail with colors. # tail -f /var/log/maillog | perl -pe 's/colorthisword/\e[1;32;40m$&\e[0m/g' The ;;; values explained...
Script to customize a linux install
This is a simple bash script I whipped together to make som custom changes on our linux installations, it can be used as a kickstart post-configuration file for RedHat RHEL4...
Determine false positive from rkhunter
I’ve installed rkhunter, a rootkit checking script, on a Ubuntu 7.10 (Gutsy Gibbons) distro and today it mailed a message saying that 3 files had their properties changed. The...
««
«
1
2
3
4
»
»»