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: Greg Wooledge
Subject: Re: [Help-bash] how to bulk rename files
Date: Thu, 12 Apr 2012 08:17:40 -0400
User-agent: Mutt/1.4.2.3i

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



reply via email to

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