Re: [vox-tech] perl rename

2015-09-17 Thread Bill Kendrick
On Tue, Sep 15, 2015 at 10:52:33PM -0700, Brian E. Lavender wrote:
> On Tue, Sep 15, 2015 at 01:36:53PM -0700, Brian E. Lavender wrote:
> > No. C is a nasty language.
> > Use Eiffel instead!
> 
> I thought I was going to start a flame war. 

No, but I'm gonna go ahead and unfriend you over on Facebook.

;)

-bill!
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-16 Thread jim


Looks like Brian mis-spelled C++



On 09/16/2015 04:33 PM, Wes Hardaker wrote:

"Brian E. Lavender"  writes:


On Sun, Sep 13, 2015 at 09:00:07AM +0800, Mark's tech help wrote:

On 9/12/2015 at 2:06 PM, "Wes Hardaker"  wrote:

I still use it?  Because it's wedged into my muscle memory and nothing
else has shown me I need to move away from it to something better
(unlike many other instances where I have moved to something better,
such as bash, python, and emacs [/me ducks and runs for cover])

hmmr..  so let be sure on this-- you've moved *away* from these 3?
And here I've just taken a half-assed plunge into an online MIT
course, "Introduction to Computer Science and Programming Using
Python" ..  (was a little distressed when Big Brother's own product,
Chrome, was at the top of suggested browsers.. and of course the
forums are full of Winblows boneheads.)  Anyways, I do recall having
read negative viewpoints on Python from purist coders'
perspectives..  would y'all suggest I just return to the K&R C of my
school daze?

No. C is a nasty language.

Yet, it still drives almost everything underneath it all.


___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-16 Thread Wes Hardaker
"Brian E. Lavender"  writes:

> On Sun, Sep 13, 2015 at 09:00:07AM +0800, Mark's tech help wrote:
>> On 9/12/2015 at 2:06 PM, "Wes Hardaker"  wrote:
>> >I still use it?  Because it's wedged into my muscle memory and nothing
>> >else has shown me I need to move away from it to something better
>> >(unlike many other instances where I have moved to something better,
>> >such as bash, python, and emacs [/me ducks and runs for cover])
>>
>> hmmr..  so let be sure on this-- you've moved *away* from these 3?
>> And here I've just taken a half-assed plunge into an online MIT
>> course, "Introduction to Computer Science and Programming Using
>> Python" ..  (was a little distressed when Big Brother's own product,
>> Chrome, was at the top of suggested browsers.. and of course the
>> forums are full of Winblows boneheads.)  Anyways, I do recall having
>> read negative viewpoints on Python from purist coders'
>> perspectives..  would y'all suggest I just return to the K&R C of my
>> school daze?
>
> No. C is a nasty language.

Yet, it still drives almost everything underneath it all.
-- 
Wes Hardaker 
My Pictures:   http://capturedonearth.com/
My Thoughts:   http://pontifications.hardakers.net/
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-15 Thread Brian E. Lavender
Oh, I should have continued with the new thread I created
Oh well.

On Tue, Sep 15, 2015 at 10:52:33PM -0700, Brian E. Lavender wrote:
> On Tue, Sep 15, 2015 at 01:36:53PM -0700, Brian E. Lavender wrote:
> > On Sun, Sep 13, 2015 at 09:00:07AM +0800, Mark's tech help wrote:
> > > On 9/12/2015 at 2:06 PM, "Wes Hardaker"  wrote:
> > > >I still use it?  Because it's wedged into my muscle memory and nothing
> > > >else has shown me I need to move away from it to something better
> > > >(unlike many other instances where I have moved to something better,
> > > >such as bash, python, and emacs [/me ducks and runs for cover])
> > > 
> > > hmmr..  so let be sure on this-- you've moved *away* from these 3?  And 
> > > here I've just taken a half-assed plunge into an online MIT course, 
> > > "Introduction to Computer Science and Programming Using Python" ..  (was 
> > > a little distressed when Big Brother's own product, Chrome, was at the 
> > > top of suggested browsers.. and of course the forums are full of Winblows 
> > > boneheads.)  Anyways, I do recall having read negative viewpoints on 
> > > Python from purist coders' perspectives..  would y'all suggest I just 
> > > return to the K&R C of my school daze?  
> > 
> > No. C is a nasty language.
> > 
> > Use Eiffel instead!
> 
> I thought I was going to start a flame war. 
> 
> Hmm. I like Pascal myself, but I like Python too.  Bertrand Meyer
> recently completed creation of a Massively Open Online Course (MOOC) for
> introducing programming.  There is much debate regarding what approach
> to use to introduce programming.  We use C++ at American River College.
> Although, you must take the pseudocode course before taking the structured
> programming course in C++.
> 
> https://webcourses.inf.ethz.ch/se_courses/introduction_to_programming/main_page/
> 
> brian
> -- 
> Brian Lavender
> http://www.brie.com/brian/
> 
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
> 
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
> ___
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-15 Thread Brian E. Lavender
On Tue, Sep 15, 2015 at 01:36:53PM -0700, Brian E. Lavender wrote:
> On Sun, Sep 13, 2015 at 09:00:07AM +0800, Mark's tech help wrote:
> > On 9/12/2015 at 2:06 PM, "Wes Hardaker"  wrote:
> > >I still use it?  Because it's wedged into my muscle memory and nothing
> > >else has shown me I need to move away from it to something better
> > >(unlike many other instances where I have moved to something better,
> > >such as bash, python, and emacs [/me ducks and runs for cover])
> > 
> > hmmr..  so let be sure on this-- you've moved *away* from these 3?  And 
> > here I've just taken a half-assed plunge into an online MIT course, 
> > "Introduction to Computer Science and Programming Using Python" ..  (was a 
> > little distressed when Big Brother's own product, Chrome, was at the top of 
> > suggested browsers.. and of course the forums are full of Winblows 
> > boneheads.)  Anyways, I do recall having read negative viewpoints on Python 
> > from purist coders' perspectives..  would y'all suggest I just return to 
> > the K&R C of my school daze?  
> 
> No. C is a nasty language.
> 
> Use Eiffel instead!

I thought I was going to start a flame war. 

Hmm. I like Pascal myself, but I like Python too.  Bertrand Meyer
recently completed creation of a Massively Open Online Course (MOOC) for
introducing programming.  There is much debate regarding what approach
to use to introduce programming.  We use C++ at American River College.
Although, you must take the pseudocode course before taking the structured
programming course in C++.

https://webcourses.inf.ethz.ch/se_courses/introduction_to_programming/main_page/

brian
-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-15 Thread Brian E. Lavender
On Sun, Sep 13, 2015 at 09:00:07AM +0800, Mark's tech help wrote:
> On 9/12/2015 at 2:06 PM, "Wes Hardaker"  wrote:
> >I still use it?  Because it's wedged into my muscle memory and nothing
> >else has shown me I need to move away from it to something better
> >(unlike many other instances where I have moved to something better,
> >such as bash, python, and emacs [/me ducks and runs for cover])
> 
> hmmr..  so let be sure on this-- you've moved *away* from these 3?  And here 
> I've just taken a half-assed plunge into an online MIT course, "Introduction 
> to Computer Science and Programming Using Python" ..  (was a little 
> distressed when Big Brother's own product, Chrome, was at the top of 
> suggested browsers.. and of course the forums are full of Winblows 
> boneheads.)  Anyways, I do recall having read negative viewpoints on Python 
> from purist coders' perspectives..  would y'all suggest I just return to the 
> K&R C of my school daze?  

No. C is a nasty language.

Use Eiffel instead!

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-12 Thread Mark's tech help
On 9/12/2015 at 2:06 PM, "Wes Hardaker"  wrote:
>I still use it?  Because it's wedged into my muscle memory and nothing
>else has shown me I need to move away from it to something better
>(unlike many other instances where I have moved to something better,
>such as bash, python, and emacs [/me ducks and runs for cover])

hmmr..  so let be sure on this-- you've moved *away* from these 3?  And here 
I've just taken a half-assed plunge into an online MIT course, "Introduction to 
Computer Science and Programming Using Python" ..  (was a little distressed 
when Big Brother's own product, Chrome, was at the top of suggested browsers.. 
and of course the forums are full of Winblows boneheads.)  Anyways, I do recall 
having read negative viewpoints on Python from purist coders' perspectives..  
would y'all suggest I just return to the K&R C of my school daze?  A Techdirt 
podcast was raving about how "node.js" is all the rage among startups.  Meh.

--
Shell programming is a 1950's jukebox - great if it has your song already.  
--Larry Wall

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-11 Thread Wes Hardaker
Rick Moen  writes:

> I think this is yet another case, among countless others, where the very
> first response to querent needed to be some gentle form of 'What problem
> are you actually trying to solve?'

[sorry for the week delay on this...]

In my case, the perl script I posted was written long before many other
things existed.  I believe it was written back in the perl4 era.  Why do
I still use it?  Because it's wedged into my muscle memory and nothing
else has shown me I need to move away from it to something better
(unlike many other instances where I have moved to something better,
such as bash, python, and emacs [/me ducks and runs for cover])
-- 
Wes Hardaker 
My Pictures:   http://capturedonearth.com/
My Thoughts:   http://pontifications.hardakers.net/
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-04 Thread Brian E. Lavender
Excellent. Thanks. 

brian

On Fri, Sep 04, 2015 at 07:41:16AM -0700, Wes Hardaker wrote:
> "Brian E. Lavender"  writes:
> 
> > Shell command that does the following.
> >
> > rename "s/^/foo/" *.txt
> 
> I think I posted it a long time ago.  It was written before the command
> line rename program existed, so there wasn't a conflict.
> 
> #!/usr/bin/perl
> 
> ($op = shift) || die "Usage: rename expr [files]]\n";
> 
> if(!@ARGV)
>   {
>   @ARGV = ;
>   chop(@ARGV);
>   }
> 
> for (@ARGV)
>   {
>   $was = $_;
>   eval $op;
>   die $@ if $@;
> 
>   if ($was ne $_)
> {
> print "rename($was,$_)\n";
> rename($was,$_);
> }
>   }
> 
> exit;
> 
> -- 
> Wes Hardaker 
> My Pictures:   http://capturedonearth.com/
> My Thoughts:   http://pontifications.hardakers.net/

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-04 Thread Wes Hardaker
"Brian E. Lavender"  writes:

> Shell command that does the following.
>
> rename "s/^/foo/" *.txt

I think I posted it a long time ago.  It was written before the command
line rename program existed, so there wasn't a conflict.

#!/usr/bin/perl

($op = shift) || die "Usage: rename expr [files]]\n";

if(!@ARGV)
  {
  @ARGV = ;
  chop(@ARGV);
  }

for (@ARGV)
  {
  $was = $_;
  eval $op;
  die $@ if $@;

  if ($was ne $_)
{
print "rename($was,$_)\n";
rename($was,$_);
}
  }

exit;

-- 
Wes Hardaker 
My Pictures:   http://capturedonearth.com/
My Thoughts:   http://pontifications.hardakers.net/
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-03 Thread Rick Moen
Quoting Mark's tech help (markinda...@hush.com):

> Reason: I'm running my usual, minimalist distro! (Busybox does too
> many things on this.)  You..  you lucky, decked-out full-installation
> people, you!  But really, mmv looks great-- will have to install it.
> Thanks for the tip.

Yr. welcome.

mmv is one of numerous ways of filling the functionality-hole that
newcomers to Unix from MS-DOS inevitably found perplexing (back in the
day).  The difference lies in the way arguments get processed.  Unix
shells expand globs before passing the arguments off to the called
executables.  The MS-DOS COMMAND.COM shell did not.
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-03 Thread Mark's tech help
trying here:

root# mmv
bash: mmv: command not found
root# 


Reason: I'm running my usual, minimalist distro! (Busybox does too many things 
on this.)  You..  you lucky, decked-out full-installation people, you!  But 
really, mmv looks great-- will have to install it.  Thanks for the tip.


 - Mark

--
https://twitter.com/linuxusergroup

On 9/3/2015 at 10:36 PM, "Rick Moen"  wrote:
>
>Quoting Mark's tech help (markinda...@hush.com):
>
>> I'm a tad baffled by the usage of perl here.  Some part of a 
>learning exercise for perl, or could one not just come up with a 
>line of bash commands.. a combination of mv and sed with a pipe 
>&/or redirect?
>
>I think this is yet another case, among countless others, where 
>the very
>first response to querent needed to be some gentle form of 'What 
>problem
>are you actually trying to solve?'
>
>P.S.:
>
>$ man 1 mmv
>
>MMV(1)
>
>NAME
>   mmv - move/copy/append/link multiple files by wildcard 
>patterns
>
>SYNOPSIS
>   mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [--] [from 
>to]
>
>DESCRIPTION
>   Mmv moves (or copies, appends, or links, as specified) each 
>source file
>   matching a from pattern to the target name specified by the 
>to pattern.
>   This  multiple  action is performed safely, i.e. without 
>any unexpected
>   deletion of files due to collisions of target names with 
>existing file-
>   names  or with other target names.  Furthermore, before 
>doing anything,
>   mmv attempts to detect any errors that would result from 
>the entire set
>   of actions specified and gives the user the choice of 
>either proceeding
>   by avoiding the offending parts or aborting.  mmv  does  
>support large
>   files  (LFS)  but  it does *NOT* support sparse files (i.e. 
>it explodes
>   them).
>[...]
>
>___
>vox-tech mailing list
>vox-tech@lists.lugod.org
>http://lists.lugod.org/mailman/listinfo/vox-tech

--
Shell programming is a 1950's jukebox - great if it has your song already.  
--Larry Wall

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-03 Thread Rick Moen
Quoting Mark's tech help (markinda...@hush.com):

> I'm a tad baffled by the usage of perl here.  Some part of a learning 
> exercise for perl, or could one not just come up with a line of bash 
> commands.. a combination of mv and sed with a pipe &/or redirect?

I think this is yet another case, among countless others, where the very
first response to querent needed to be some gentle form of 'What problem
are you actually trying to solve?'

P.S.:

$ man 1 mmv

MMV(1)

NAME
   mmv - move/copy/append/link multiple files by wildcard patterns

SYNOPSIS
   mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [--] [from to]

DESCRIPTION
   Mmv moves (or copies, appends, or links, as specified) each source file
   matching a from pattern to the target name specified by the to pattern.
   This  multiple  action is performed safely, i.e. without any unexpected
   deletion of files due to collisions of target names with existing file-
   names  or with other target names.  Furthermore, before doing anything,
   mmv attempts to detect any errors that would result from the entire set
   of actions specified and gives the user the choice of either proceeding
   by avoiding the offending parts or aborting.  mmv  does  support large
   files  (LFS)  but  it does *NOT* support sparse files (i.e. it explodes
   them).
[...]

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-03 Thread Mark's tech help

I'm a tad baffled by the usage of perl here.  Some part of a learning exercise 
for perl, or could one not just come up with a line of bash commands.. a 
combination of mv and sed with a pipe &/or redirect?

 - Mark

--
https://twitter.com/linuxusergroup

On 9/4/2015 at 1:45 AM, "Jeff Newmiller"  wrote:
>
>It was your modifier term "perl" that confused me, particularly 
>when the OS distribution was included. In retrospect, I can see 
>why this made sense to you, but describing it as a "rename Perl 
>script" would have helped.
>---
>
>Jeff NewmillerThe .   .  
>Go Live...
>DCN:Basics: ##.#.   ##.#.  
>Live Go...
>  Live:   OO#.. Dead: OO#..  
>Playing
>Research Engineer (Solar/BatteriesO.O#.   #.O#.  
>with
>/Software/Embedded Controllers)   .OO#.   .OO#.  
>rocks...1k
>---
> 
>Sent from my phone. Please excuse my brevity.
>
>On September 3, 2015 10:14:45 AM PDT, "Brian E. Lavender" 
> wrote:
>>Shell command that does the following.
>>
>>rename "s/^/foo/" *.txt
>>
>>It's on Debian. 
>>
>>On Wed, Sep 02, 2015 at 10:15:34PM -0700, Jeff Newmiller wrote:
>>> Your question baffles me.
>>> 
>>> The rename function is built-in to perl.
>>> 
>>> There is also File::Copy if you are concerned about portability.
>>>
>>--
>-
>>> Jeff NewmillerThe .   . 
> Go
>>Live...
>>> DCN:Basics: ##.#.   ##.#. 
> Live
>>Go...
>>>   Live:   OO#.. Dead: OO#.. 
>>Playing
>>> Research Engineer (Solar/BatteriesO.O#.   #.O#. 
> with
>>> /Software/Embedded Controllers)   .OO#.   .OO#. 
>>rocks...1k
>>>
>>--
>-
>>
>>> Sent from my phone. Please excuse my brevity.
>>> 
>>> On September 2, 2015 9:56:51 PM PDT, "Brian E. Lavender"
>> wrote:
>>> >Anyone know where to the find the perl rename command on 
>Fedora?
>>> >
>>> >brian
>>> >-- 
>>> >Brian Lavender
>>> >http://www.brie.com/brian/
>>> >
>>> >"There are two ways of constructing a software design. One way 
>is to
>>> >make it so simple that there are obviously no deficiencies. 
>And the
>>> >other
>>> >way is to make it so complicated that there are no obvious
>>> >deficiencies."
>>> >
>>> >Professor C. A. R. Hoare
>>> >The 1980 Turing award lecture
>>> >___
>>> >vox-tech mailing list
>>> >vox-tech@lists.lugod.org
>>> >http://lists.lugod.org/mailman/listinfo/vox-tech
>>> 
>>> ___
>>> vox-tech mailing list
>>> vox-tech@lists.lugod.org
>>> http://lists.lugod.org/mailman/listinfo/vox-tech
>>
>>-- 
>>Brian Lavender
>>http://www.brie.com/brian/
>>
>>"There are two ways of constructing a software design. One way is 
>to
>>make it so simple that there are obviously no deficiencies. And 
>the
>>other
>>way is to make it so complicated that there are no obvious
>>deficiencies."
>>
>>Professor C. A. R. Hoare
>>The 1980 Turing award lecture
>>___
>>vox-tech mailing list
>>vox-tech@lists.lugod.org
>>http://lists.lugod.org/mailman/listinfo/vox-tech
>
>___
>vox-tech mailing list
>vox-tech@lists.lugod.org
>http://lists.lugod.org/mailman/listinfo/vox-tech

--
Shell programming is a 1950's jukebox - great if it has your song already.  
--Larry Wall

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-03 Thread Jeff Newmiller
It was your modifier term "perl" that confused me, particularly when the OS 
distribution was included. In retrospect, I can see why this made sense to you, 
but describing it as a "rename Perl script" would have helped.
---
Jeff NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On September 3, 2015 10:14:45 AM PDT, "Brian E. Lavender"  
wrote:
>Shell command that does the following.
>
>rename "s/^/foo/" *.txt
>
>It's on Debian. 
>
>On Wed, Sep 02, 2015 at 10:15:34PM -0700, Jeff Newmiller wrote:
>> Your question baffles me.
>> 
>> The rename function is built-in to perl.
>> 
>> There is also File::Copy if you are concerned about portability.
>>
>---
>> Jeff NewmillerThe .   .  Go
>Live...
>> DCN:Basics: ##.#.   ##.#.  Live
>Go...
>>   Live:   OO#.. Dead: OO#.. 
>Playing
>> Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
>> /Software/Embedded Controllers)   .OO#.   .OO#. 
>rocks...1k
>>
>---
>
>> Sent from my phone. Please excuse my brevity.
>> 
>> On September 2, 2015 9:56:51 PM PDT, "Brian E. Lavender"
> wrote:
>> >Anyone know where to the find the perl rename command on Fedora?
>> >
>> >brian
>> >-- 
>> >Brian Lavender
>> >http://www.brie.com/brian/
>> >
>> >"There are two ways of constructing a software design. One way is to
>> >make it so simple that there are obviously no deficiencies. And the
>> >other
>> >way is to make it so complicated that there are no obvious
>> >deficiencies."
>> >
>> >Professor C. A. R. Hoare
>> >The 1980 Turing award lecture
>> >___
>> >vox-tech mailing list
>> >vox-tech@lists.lugod.org
>> >http://lists.lugod.org/mailman/listinfo/vox-tech
>> 
>> ___
>> vox-tech mailing list
>> vox-tech@lists.lugod.org
>> http://lists.lugod.org/mailman/listinfo/vox-tech
>
>-- 
>Brian Lavender
>http://www.brie.com/brian/
>
>"There are two ways of constructing a software design. One way is to
>make it so simple that there are obviously no deficiencies. And the
>other
>way is to make it so complicated that there are no obvious
>deficiencies."
>
>Professor C. A. R. Hoare
>The 1980 Turing award lecture
>___
>vox-tech mailing list
>vox-tech@lists.lugod.org
>http://lists.lugod.org/mailman/listinfo/vox-tech

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-03 Thread Brian E. Lavender
Shell command that does the following.

rename "s/^/foo/" *.txt

It's on Debian. 

On Wed, Sep 02, 2015 at 10:15:34PM -0700, Jeff Newmiller wrote:
> Your question baffles me.
> 
> The rename function is built-in to perl.
> 
> There is also File::Copy if you are concerned about portability.
> ---
> Jeff NewmillerThe .   .  Go Live...
> DCN:Basics: ##.#.   ##.#.  Live Go...
>   Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
> /Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
> --- 
> Sent from my phone. Please excuse my brevity.
> 
> On September 2, 2015 9:56:51 PM PDT, "Brian E. Lavender"  
> wrote:
> >Anyone know where to the find the perl rename command on Fedora?
> >
> >brian
> >-- 
> >Brian Lavender
> >http://www.brie.com/brian/
> >
> >"There are two ways of constructing a software design. One way is to
> >make it so simple that there are obviously no deficiencies. And the
> >other
> >way is to make it so complicated that there are no obvious
> >deficiencies."
> >
> >Professor C. A. R. Hoare
> >The 1980 Turing award lecture
> >___
> >vox-tech mailing list
> >vox-tech@lists.lugod.org
> >http://lists.lugod.org/mailman/listinfo/vox-tech
> 
> ___
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-02 Thread Bill Broadley
On 09/02/2015 10:15 PM, Jeff Newmiller wrote:
> Your question baffles me.
> 
> The rename function is built-in to perl.

Under ubuntu:
bill@left:~$ which rename
/usr/bin/rename
bill@left:~$ ls -al /usr/bin/rename
lrwxrwxrwx 1 root root 24 Jun 17  2013 /usr/bin/rename ->
/etc/alternatives/rename
bill@left:~$ ls -al /etc/alternatives/rename
lrwxrwxrwx 1 root root 16 Jun 17  2013 /etc/alternatives/rename ->
/usr/bin/prename
bill@left:~$ dpkg -S /usr/bin/prename
perl: /usr/bin/prename
bill@left:~$

Maybe fedora calls it prename?

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] perl rename

2015-09-02 Thread Jeff Newmiller
Your question baffles me.

The rename function is built-in to perl.

There is also File::Copy if you are concerned about portability.
---
Jeff NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On September 2, 2015 9:56:51 PM PDT, "Brian E. Lavender"  wrote:
>Anyone know where to the find the perl rename command on Fedora?
>
>brian
>-- 
>Brian Lavender
>http://www.brie.com/brian/
>
>"There are two ways of constructing a software design. One way is to
>make it so simple that there are obviously no deficiencies. And the
>other
>way is to make it so complicated that there are no obvious
>deficiencies."
>
>Professor C. A. R. Hoare
>The 1980 Turing award lecture
>___
>vox-tech mailing list
>vox-tech@lists.lugod.org
>http://lists.lugod.org/mailman/listinfo/vox-tech

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] perl rename

2015-09-02 Thread Brian E. Lavender
Anyone know where to the find the perl rename command on Fedora?

brian
-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech