With all the debate going on, let me just say that a perl script was THE
ONLY method that allowed me to change paths in 13,161 files and scripts when
I moved from one provider to another. Try a *one-liner" on multiple files
(13,000+) located in different directories...

With a Perl script, I can make the needed changes, make a copy of the
original for back-up purposes, and move files accordingly. Will I always
remember a *one-liner* that will do all that? Certainly not, but I will
always have that script. Honestly, was there a better way then using a
script for the above purpose?

I like this list, but sometimes I think authors forget from wince they came
making the "barrier to entry" difficult as if job security was an issue.

~Feel free to allow knowledge freedom~

On 3/21/06, Timothy Johnson <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >-----Original Message-----
> >From: Mr. Shawn H. Corey [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, March 21, 2006 2:29 PM
> >To: beginners perl
> >Subject: Re: regex one liner
> >
> >Timothy Johnson wrote:
> >> And you can't do this?
> >>
> >>     alias pcalc='perl ~/pcalc.pl'
> >
> >No. With alias, I can create an alias file that works with sh (and ksh,
> >bash) and csh (and tcsh). This would be dot'ed in your .profile as:
> >
> >   . ~/.alias
> >
> >or source'd in your .cshrc as:
> >
> >   source ~/.alias
> >
> >If you want the same as a script:
> >
> >   mv ~/pcalc.pl ~/bin/pcalc
> >
>
> It works on my SunOS box using bash.  I can set an alias to the
> command-line for launching my script without moving it into any special
> directories, and yes, I am much more familiar with Windows than any
> flavor of UNIX, so I'm aware that I might not be following best
> practices, but that's not the point.  I'm not completely sure you didn't
> get my point, however.
>
> >BTW, out here in the real world (that would be UNIX), <snip>
> >
>
> Beyond being rude and immature, this is off-topic.  Please don't try to
> start a "my OS is better than your OS" war.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>

Reply via email to