<?xml version="1.0" encoding="windows-1252"?>
<node id="515336" title="What one-liners do people actually use?" created="2005-12-08 13:53:25" updated="2005-12-08 08:53:25">
<type id="115">
perlquestion</type>
<author id="144696">
TomDLux</author>
<data>
<field name="doctext">
&lt;p&gt;People talk about one-liners, but it's usually just to say that someone's usefull little utility could be collapsed into an unreadable glumph of line noise .... wait, that's the deinition of Perl, isn't it?&lt;/p&gt;
&lt;p&gt;But what one-liners do people actually use? I regularly alter Autosys meta-scripts to run a new version of a set of scripts, or to target a new database, or to run on a new host, using perl as a super-sed:&lt;/p&gt;
&lt;code&gt;
co -l *np40*
perl -pi -e"m/host:/ &amp;&amp; s/paias167/pa167c1n1/" 
ci -u -m'move scripts to new hosts' *np40*
&lt;/code&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-144696"&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;--&lt;br&gt;
&lt;tt&gt;TTTATCGGTCGTTATATAGATGTTTGCA&lt;/tt&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
