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" <jdnew...@dcn.davis.ca.us> 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 Newmiller The ..... ..... >Go Live... >DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. >Live Go... > Live: OO#.. Dead: OO#.. >Playing >Research Engineer (Solar/Batteries O.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" ><br...@brie.com> 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 Newmiller The ..... ..... > Go >>Live... >>> DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. > Live >>Go... >>> Live: OO#.. Dead: OO#.. >>Playing >>> Research Engineer (Solar/Batteries O.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" >><br...@brie.com> 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