Re: How to get the filename of files in an archive correctly?
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[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 > >
OpenPGP_signature
(application/pgp-signature, 840 B) - not displayed