🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #215158

Re: Utility to rename files

#215158
From: Anonyma
Date: Thu, 29 Mar 2007 00:41
77 lines
3565 bytes
admin@newsanon.yi.org wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> > On Wed, 28 Mar 2007 13:00:03 +0200, Nomen Nescio wrote:
> >
> >> i=0; for f in *Stupid*.jpg; do mv $f eelbash$i.jpg; i=$(($i+1)); done
> 
> That is a nice little piece of code, aside from the childish insult
> contained in it.
> 
> It has a couple of problems, however:

The only problem here is your arrogance and incompetence. The script
was a real simple way to do what your broken crap does, in one line.

> One is that, all too typically, it is so bare-bones, so lacking in any
> kind of documentation, that nobody who is a newbie will make much sense of
> it. For example, how, exactly, do you execute it? From a command line, as
> part of a python or perl program, or what?

This is just to clueless to even comment on, other than pointing out
how clueless it is.

> How do you control what directory it affects?

Like you do with every other command line "program" on every computer
in the world, you witless buffoon.

> 
> A couple of good examples might have made those things clear, but the
> poster couldn't be bothered with details. Very typically thoughtless about
> the audience of newbies that will be reading this group.

What details? It's first day bash script. 10 minutes of studying a
howto page you can find by the hundreds through Google would explain
everything even to a total noob.

> 
> The second thing about it that seems lacking, at least from the playing
> around with it that I've done, is that it seems rigid in how it can be
> applied to file names.

Bullshit. It's a simple mass renaming script that DOESN'T require any
stupid INI file to do it's job.

> 
> For example, if a folder contains aaabbb.txt  and rrrxxxbbb.txt, and you
> want to rename just the 'bbb' portion of each to, say, 'spqr', so that you
> end up with aaaspqr.txt and rrrxxxspqr.txt, how do you do that?

man awk

> 
> I don't think the command allows that; you need to write a script to do
> the parsing of each input file.

No you don't.

> 
> What I did was to write a script to do just that, and once the file names
> have been properly massaged, the mv command is run.

What you did was rip off some example code you don't understand, and
queer it up so it was an unusable and broken way to do a ridiculously
easy job, then get your ass handed to you when someone proved just how
arrogant and incompetent you really are.

Nothing new there.

> 
> Please give it a try.

Please fuck off. I have no desire to let your incompetence put MY files
at risk.
Technical Details
Message-ID: <0d77b6c5663331f9c413830ee528002b@deuxpi.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
References: <20070328180628.hcSIStG3jLB7@anonymous.poster>

Show Full Headers
Complete Article Headers
Message-ID: <0d77b6c5663331f9c413830ee528002b@deuxpi.ca>
Subject: Re: Utility to rename files
Date: Thu, 29 Mar 2007 00:41:30 +0000
From: Anonyma <anon-bounces@deuxpi.ca>
References: <20070328180628.hcSIStG3jLB7@anonymous.poster>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
X-Anonymous: yes
X-Anon-Help: <http://www.deuxpi.ca/>
 <mailto:deuxpi-admin@deuxpi.ca>
Newsgroups: alt.privacy.anon-server
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 77