[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making copies of files
From: |
michael-franzese |
Subject: |
Re: Making copies of files |
Date: |
Wed, 31 Mar 2021 19:59:18 +0200 |
Would the following suffice?
#!/bin/bash
find . -type f -name '*.htm' -print0 | while IFS= read -r -d '' f; do
cp -- "$f" "${f%.*}.org"
done
> Sent: Thursday, April 01, 2021 at 5:28 AM
> From: "Lawrence Velázquez" <vq@larryv.me>
> To: michael-franzese@gmx.com
> Cc: help-bash@gnu.org
> Subject: Re: Making copies of files
>
> On Wed, Mar 31, 2021, at 1:24 PM, michael-franzese@gmx.com wrote:
> > I got a directory tree with "htm" files among others. My task is to
> > make copies of "htm" files in their directory location but with extension
> > "org".
>
> https://mywiki.wooledge.org/BashFAQ/030
>
> vq
>
- Making copies of files, michael-franzese, 2021/03/31
- Re: Making copies of files, Lawrence Velázquez, 2021/03/31
- Re: Making copies of files,
michael-franzese <=
- Re: Making copies of files, Marco Ippolito, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31
- Re: Making copies of files, Greg Wooledge, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31
- Re: Making copies of files, Lawrence Velázquez, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31
- Re: Making copies of files, Lawrence Velázquez, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31