Daily Archives: June 9, 2014

perl: define a module to be called in another script

First, define a module. The module must be in a path reachable by perl (e.g., local directory). Then, to make a script a valid package, you need to proceed as follows: Rename the perl script with the extension .pm It … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

sed: how to add text at the end of the file

Use the $a syntax and sed: sed -i -e "$a some text" filenamesed -i -e "$a some text" filename -i parameter means in place. A previous post explained how to insert a line anywhere but for completeness here it is … Continue reading

Posted in Linux | Tagged | Leave a comment