help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] how to bulk rename files


From: lxnf98mm
Subject: Re: [Help-bash] how to bulk rename files
Date: Thu, 12 Apr 2012 08:29:58 -0500 (CDT)
User-agent: Alpine 2.00 (LRH 1167 2008-08-23)

On Thu, 12 Apr 2012, Greg Wooledge wrote:

On Wed, Apr 11, 2012 at 04:06:05PM -0500, address@hidden wrote:
they are in a single directory
and why not find . -type f ! -name '*.*' -exec mv '{}' '{}'.txt \;

That won't work with all versions of find.  You cannot assume that
{}.txt will work.  It works in GNU find, but not in HP-UX find, for
example.

imadev:~$ find .bashrc -exec echo {}x \;
{}x

arc3:~$ find .bashrc -exec echo {}x \;
.bashrcx


and this is why i ask first



reply via email to

[Prev in Thread] Current Thread [Next in Thread]