To get the selected text as output and send it to a file, I tested this command 
:
f=/home/silvain/Bureau/SFE/Annual-Report/2021/AnnualReport_2021_06.sla
*grep -oE 'PFILE="[^"]*(jpg|jpeg|png|pdf)"'* $f > list-images.txt

The result is a liste of lines like this one :
PFILE="images/SFE_Logo-fr-fond-dégradé.png"

The regexp looks for strings starting with PFILE=" and gets the text until the next guillemet ending with one of the desired file extensions (I include pdf, as I do include several PDF in my document)

Le 01.06.22 à 11:15, Owen a écrit :
On 2022-06-01 17:11, Rolf-Werner Eilert wrote:
Good morning everyone!

Is there a way to get a list of all pictures included in a document
with filenames and their paths?

Just had the "problem" that there is a document grown over the years
with its own picture folder crammed with files which are no longer
used. It is difficult to decide which files are in use and which files
may be deleted from the folder.

If I had a list, I could browse the folder and see it at once.

I know that there are 2 tools for it in 1.5.8, and these tools are
great. But instead of "Preview with filename" I would rather need
something like "Path & filename & used" only. Something like a
specialized file browser showing all picture files and which files are
in use and which ones might be obsolete. This tool would of course
have to be folder orientated, not document orientated.

Regards
Rolf


Try something like:



# grep -E '(jpg|jpeg|png)' document.sla


--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org <https://perso.silvain-dupertuis.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.scribus.net/pipermail/scribus/attachments/20220601/016c4b45/attachment.htm>
___
Scribus Mailing List: [email protected]
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net

Reply via email to