🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Utility to rename files

#215146
From: Ed
Date: Wed, 28 Mar 2007 20:01
62 lines
3394 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

admin@newsanon.yi.org wrote in
news:20070328180628.hcSIStG3jLB7@anonymous.poster: 

> -----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:
>> 
> 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?

man bash
 
> How do you control what directory it affects?
 
man pcre


snip

> 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.

snip
 
> It's a pity that SofaKing isn't still around. He seemed to know his
> way around python, and could probably blast out a nice gui front end
> for something like this, not to mention make it a lot more useful. As
> it is, you'll have to do with the simple prompts that I was able to
> put in.

Why would you want a GUI just to rename files?  Too much overhead.


- -- 
http://blog.peculiarplace.com
http://offthecuff.lurasbookcase.com
http://peculiarplace.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32) - GPGshell v3.52

iQEVAwUBRgrJp3V+YnyE1GYEAQjHgwgAjn1MZdowRdD0cYHh5rxXQyBBhq2ze8Mv
kYs+52zaZjEiaJmjYjHjdBooMORFmtOV08xFLC0ILYGxLuuZP5AmyK9tlkUuTT6/
qfwLfiQRKfI8/AePdH2+Ijx+nyHKbhFAhYurIbLuSL01xhCsVVzqusVFWX80V5lp
yXsJnicAG/+2paTQ1sKqhGc3JuVoYv6Rn0m1BsunV3S7v1rTwyrGZq3SAkomEUQ8
H0nk8jwExJIDwJ6r9l6HeaviMhmkxf/mMzPeDBoSRYGuWd2/rVgLsLP/7M4zhw2r
3GY/dsf0pr76at8x/YOeWaVlpQbsb0nHDMqTNnXxSTF7AJiGu4EpEg==
=7ih/
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <Xns990198E3146632362352@127.0.0.1>
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!local01.nntp.dca.giganews.com!nntp.centurytel.net!news.centurytel.net.POSTED!not-for-mail
References: <c4362f1eeeba0ad05a32407ebbd43f4f@dizum.com> <20070328180628.hcSIStG3jLB7@anonymous.poster>

Show Full Headers
Complete Article Headers
Message-ID: <Xns990198E3146632362352@127.0.0.1>
Subject: Re: Utility to rename files
Date: Wed, 28 Mar 2007 15:01:45 -0500
From: Ed <apostle@REMOVETHISpeculiar.homeip.net>
References: <c4362f1eeeba0ad05a32407ebbd43f4f@dizum.com> <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!local01.nntp.dca.giganews.com!nntp.centurytel.net!news.centurytel.net.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 28 Mar 2007 15:24:22 -0500
Newsgroups: alt.privacy.anon-server
User-Agent: Xnews/2005.10.18 Hamster/2.0.7.0
X-PGP-Key: 0x84D46604
X-PGP-Key-fingerprint: DA03 1EA4 7F5D DF74 B89F E871 757E 627C 84D4 6604
Lines: 62
NNTP-Posting-Host: 69.29.32.69
X-Trace: sv3-DeY/0nVuSfCAwkTIDOfBE7aBTM1iEb9GoGNBvwWH+CQP3iHlFt79K1r+PbE5SrcOQ9ohYFuWgJvjVr2!6AK9X+C26asQ8W6WRt2OS/8lSCOPAAg593KWvF9Kwtgwy6SwbyioAGKn3GSUE3oCxsZZK6XvNxbq!Cd3yxB9h6PmTCwYJYhsdsZ8=
X-Complaints-To: abuse@centurytel.net
X-DMCA-Complaints-To: abuse@centurytel.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.34