On Sun, 13 Apr 2014 13:21:19 +0300
Andrei POPESCU <andreimpope...@gmail.com> wrote:

> On Sb, 12 apr 14, 12:26:48, Steve Litt wrote:
> > On Thu, 10 Apr 2014 00:43:45 +0300
> > Andrei POPESCU <andreimpope...@gmail.com> wrote:
> > 
> > > On Mi, 09 apr 14, 08:59:51, Steve Litt wrote:
> > > > 
> > > > Or, you can just redirect ls into a file, use Vim to convert and
> > > > rename each file individually.
> > > 
> > > Could you please elaborate on this?
> > 
> > ls -1 *.png > doit.sh
> > chmod a+x doit.sh
> > gvim doit.sh
> > :%s/^/doconvert  /
> > ggi
> > function doconvert(){
> >  mv $1 $1.bak
> >  convert -crop whatever $1.bak $1
> > }<esc>
> > :wq
> > ./doit.sh
> 
> (g)vim seems overkill to me.

Quick, relatively safe, and mistake-resistant, and without the immense
downside risk of various one-liners.

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140413104707.5c98d4f2@mydesk

Reply via email to