🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Utility to rename files

#215138
From: Anonyma
Date: Wed, 28 Mar 2007 13:08
23 lines
1855 bytes
In article <fb9bd71eb20b6596cadd2b904998976c@deuxpi.ca>
Anonyma <anon-bounces@deuxpi.ca> wrote:
>
>> i=0; for f in *Stupid*.jpg; do mv $f eelbash$i.jpg; i=$(($i+1)); done
>
> This example illustrates an irritating habit of the nerdier geeks: they
> like to compress their code to a degree that it is unreadable; and they
> refuse to annotate it.

Ahhh eelbash, you asked for a one line mass file renamer and he gave
it to you. Big surprise that you'd have to try and put it down after
getting spanked yet again.

It's incredibly simple to read. I don't even know perl or bash or
python and yet I could read it easily.

Let me explain it simpler for you...
For every jpg file with the word stupid in it, rename it to
eelbash$i.jpg. The $i gets increased for each file.

He gave you exactly what you asked for: a one line script to mass
rename files under linux.
Technical Details
Message-ID: <6c4e8b4994de5839a74a2c04ff02e7be@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!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
References: <c4362f1eeeba0ad05a32407ebbd43f4f@dizum.com> <fb9bd71eb20b6596cadd2b904998976c@deuxpi.ca>

Show Full Headers
Complete Article Headers
Message-ID: <6c4e8b4994de5839a74a2c04ff02e7be@deuxpi.ca>
Subject: Re: Utility to rename files
Date: Wed, 28 Mar 2007 13:08:31 +0000
From: Anonyma <anon-bounces@deuxpi.ca>
References: <c4362f1eeeba0ad05a32407ebbd43f4f@dizum.com> <fb9bd71eb20b6596cadd2b904998976c@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!newsgate.cistron.nl!xs4all!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
X-No-Archive: yes
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 23