Tag Archives: perl

compile error while compiling perl module

didn’t get to document this properly, while i was compiling the sybase module for perl on solaris10 i encountered this error: cc1: error: unrecognized option `-Wdeclaration-after-statement’ it turned out that the the compiler that came with sol10 OR the box … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

editing multiple files

to remove a specific line that contained a specific string e.g. | /usr/bin/odeiavir -r from multiple files in multiple folders e.g. /var/qmail/mailnames/hostname.com/user1/.qmail /var/qmail/mailnames/hostname.net/user2/.qmail /var/qmail/mailnames/hostname.org/user3/.qmail Run this: #find /var/qmail/mailnames -type f -name .qmail |xargs perl -pi -e ‘s/\| \/usr\/bin\/odeiavir .+//g’ What … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment