Follow me
-
Recent Posts
calendar
Recent Comments
- Stan on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- Cormac on Pandas : how to compare dataframe with None
- LP on AWK: the substr command to select a substring
- jrab on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- How to disable SSL verification for urlretrieve? – Peter's blog on python: certificate verified failed
Archives
Categories
Meta
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
sed: how to add text at the end of the file
Use the $a syntax and sed: sed -i ‘$a some text’ filenamesed -i ‘$a some text’ filename -i parameter means in place. To test without changing the original file, remove the -i option. The results will be print on the … Continue reading