shell script interpolation of variables containing spaces [was: afio batch operation]

2022-11-06 Thread David Christensen
On 11/6/22 05:01, Greg Wooledge wrote: > On Sun, Nov 06, 2022 at 08:50:16PM +0800, jeremy ardley wrote: >> On 6/11/22 19:38, Thomas Schmitt wrote: >>> Then unpack the archive files: >>> >>> for i in "$archive_dir"/*.afio.bz2 >>> do >>> # One of: >>> # afio -ivZ -P bzip2 >> Co

Re: afio batch operation

2022-11-06 Thread Thomas Schmitt
Hi, i wrote: > > # afio -ivZ -P bzip2 jeremy ardley wrote: > Corrected: > afio -ivZ -P bzip2 $i Indeed. (Being aware that Greg Wooledge is watching i would have added "$i".) > remarkably slow even on my PCIe NVME drive. DVD reading can be quite slow. bzip2 decompression is said to be s

Re: afio batch operation

2022-11-06 Thread Greg Wooledge
On Sun, Nov 06, 2022 at 08:50:16PM +0800, jeremy ardley wrote: > On 6/11/22 19:38, Thomas Schmitt wrote: > > Then unpack the archive files: > > > >for i in "$archive_dir"/*.afio.bz2 > >do > > # One of: > > # afio -ivZ -P bzip2 > Corrected: > > afio -ivZ -P bzip2 $i > > >

Re: afio batch operation

2022-11-06 Thread jeremy ardley
First, Thank you Thomas for taking the effort to document this. It has helped immensely. I fixed one typo in your script noted below and then it all worked flawlessly - though remarkably slow even on my PCIe NVME drive. I also made a mistake, it was two DVDs not a CD so quite a few gigabytes.

Re: afio batch operation

2022-11-06 Thread Thomas Schmitt
Hi, > I have a CD that was written by mondorescue and it has hundreds of files in > the form > .afio.bz2. They must be quite small if hundreds of them fit on a CD. > Can someone suggest a simple command line to extract the hundreds of files > and write/merge them into a single directory tree?

afio batch operation

2022-11-06 Thread jeremy ardley
I have a CD that was written by mondorescue and it has hundreds of files in the form .afio.bz2. I can open individual files using Xarchiver and see they are individually parts of an old system of mine. Can someone suggest a simple command line to extract the hundreds of files and write/merg