[Top][All Lists]

[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 20:12:10 +0200

I would need an actual copy as I need to make also some modifications
to the resulting org files, so I can then run same data mining algortihms
rather than the html files.  I would still need to have the htm files
working as are from a browser.

> Sent: Thursday, April 01, 2021 at 6:08 AM
> From: "Marco Ippolito" <>
> To:
> Cc: "Lawrence Velázquez" <>,
> Subject: Re: Making copies of files
> > 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]