[Top][All Lists]

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

Re: Making copies of files

From: Marco Ippolito
Subject: Re: Making copies of files
Date: Wed, 31 Mar 2021 15:08:25 -0300

> Would the following suffice?
> #!/bin/bash
> find . -type f -name '*.htm' -print0 | while IFS= read -r -d '' f; do
>   cp -- "$f" "${f%.*}.org"
> done

Do you need an actual copy or would a hard link do it, as you are doing this in
the same directory and thus on the same filesystem?

reply via email to

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