<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Perl on Michael’s Domain</title><link>https://jeltsch.org/en/tags/perl/</link><description>Recent content in Perl on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/perl/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing perl modules</title><link>https://jeltsch.org/en/perl/</link><pubDate>Tue, 22 Jun 2021 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/perl/</guid><description>&lt;p&gt;I have not done this for perhaps a decade or more. But apparently, things are still the same on Ubuntu 18.04:&lt;/p&gt;</description></item><item><title>Batch renaming files on the command line</title><link>https://jeltsch.org/en/batch_renaming_files_on_the_command_line/</link><pubDate>Tue, 28 Jun 2016 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/batch_renaming_files_on_the_command_line/</guid><description>&lt;p&gt;The default command line application for batch renaming files in Ubuntu 16.04 is called &amp;ldquo;rename&amp;rdquo;:&lt;code&gt;rename 's/tk98i_/wt_tk98_/' *.tif&lt;/code&gt;It uses Perl regular expressions with and the s/old/new/ syntax. The example above renames all files with the .tif extensions and replaces the &lt;strong&gt;th98i_&lt;/strong&gt; expression with &lt;strong&gt;wt_tk98_&lt;/strong&gt;.Here are some more examples: 
 &lt;a href="http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal" target="_blank" rel="noopener noreferrer nofollow"&gt;http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
&lt;/p&gt;</description></item><item><title>Find and replace with perl</title><link>https://jeltsch.org/en/find_and_replace_with_perl/</link><pubDate>Sun, 28 Jan 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/find_and_replace_with_perl/</guid><description>&lt;p&gt;To replace the string jeltsch.blogspot.com by the string mnm.no-ip.com/blog you can use perl:&lt;code&gt;perl -pi.bak -e 's|jeltsch.blogspot.com|mnm.no-ip.com\/blog|g' *.html&lt;/code&gt; If you want to do a recursive replacement on a directory tree you can try:&lt;code&gt;perl -pi.bak -e 's|jeltsch.blogspot.com|mnm.no-ip.com\/blog|g' &lt;/code&gt;find jeltsch.org -name &amp;lsquo;*.html&amp;rsquo;``&lt;/p&gt;</description></item><item><title>How to install perl modules</title><link>https://jeltsch.org/en/how_to_install_perl_modules/</link><pubDate>Tue, 10 Oct 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_install_perl_modules/</guid><description>&lt;p&gt;In order to check, whether a specific perl module is installed (e.g. Image::Info for this example) type:&lt;code&gt;perl -MImage::Info -e1&lt;/code&gt; If it is not installed, download it from CPAN, untar, change into the install directory and install like this:&lt;code&gt;perl Makefile.PLmakemake test&lt;/code&gt; and then as root:&lt;code&gt;make install&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>