[Top][All Lists]
[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
- [Help-bash] how to bulk rename files, lxnf98mm, 2012/04/11
- Re: [Help-bash] how to bulk rename files, DJ Mills, 2012/04/11
- Re: [Help-bash] how to bulk rename files, Clark Wang, 2012/04/12
- Re: [Help-bash] how to bulk rename files, Greg Wooledge, 2012/04/12
- Re: [Help-bash] how to bulk rename files, Stephane Chazelas, 2012/04/12
- Re: [Help-bash] how to bulk rename files, Greg Wooledge, 2012/04/12
- Re: [Help-bash] how to bulk rename files, lxnf98mm, 2012/04/12
- Re: [Help-bash] how to bulk rename files, Chet Ramey, 2012/04/12