Re: How to get the filename of files in an archive correctly?
Stefan Hammerl via Dar-support <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <CAA27OgSwvA+9mH79wXmh+qfny_V8TUKhJdu1pqBcnhK1GhPDuA@mail.gmail.com> |
Thank you, that helps :). Am Di., 27. Apr. 2021 um 21:44 Uhr schrieb Denis Corbin <[email protected]>: > > > On 27/04/2021 18:59, Stefan Hammerl via Dar-support wrote: > > Hello, > > Hello, > > > > > currently I am using the dar --list command to get a list of files in > > the archive. Usually this works for parsing the output and extracting > > the filename. > > I am having problems if the file ends with a whitespace as the list > > command shows for example: > > > > [Data ][D][ EA ][FSA][Compr][S]| Permission | User | Group | Size > > | Date | filename > > --------------------------------+------------+-------+-------+---------+-------------------------------+------------ > > [Saved][ ] [-L-][ ][ ] -rw-rw-r-- stefan stefan 0 > > Tue Apr 27 18:43:50 2021 spaceAtTheEnd > > > > 'spaceAtTheEnd ' is a valid unix file name but there is no chance > > to get that via command line interface. Extraction of that file is > > working as expected. > > > > Is there a better way to get the filename? > > have you tried the XML output? (see -Txml option) > > > > > > > Best regards, > > Stefan > > > > >