[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" <maroloccio@gmail.com>
> To: michael-franzese@gmx.com
> Cc: "Lawrence Velázquez" <vq@larryv.me>, help-bash@gnu.org
> 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?
>
- 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, Marco Ippolito, 2021/03/31
- Re: Making copies of files,
michael-franzese <=
- 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
- Re: Making copies of files, Lawrence Velázquez, 2021/03/31
- Re: Making copies of files, michael-franzese, 2021/03/31