<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">To get the selected text as output and
send it to a file, I tested this command :</div>
<div class="moz-cite-prefix">f=/home/silvain/Bureau/SFE/Annual-Report/2021/AnnualReport_2021_06.sla<br>
<b>grep -oE 'PFILE="[^"]*(jpg|jpeg|png|pdf)"'</b> $f >
list-images.txt<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">The result is a liste of lines like
this one :<br>
PFILE="images/SFE_Logo-fr-fond-dégradé.png"</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">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)<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 01.06.22 à 11:15, Owen a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:febebdc14b84ab76602617eb68a1fe9d@pcug.org.au">On
2022-06-01 17:11, Rolf-Werner Eilert wrote:
<br>
<blockquote type="cite">Good morning everyone!
<br>
<br>
Is there a way to get a list of all pictures included in a
document
<br>
with filenames and their paths?
<br>
<br>
Just had the "problem" that there is a document grown over the
years
<br>
with its own picture folder crammed with files which are no
longer
<br>
used. It is difficult to decide which files are in use and which
files
<br>
may be deleted from the folder.
<br>
<br>
If I had a list, I could browse the folder and see it at once.
<br>
<br>
I know that there are 2 tools for it in 1.5.8, and these tools
are
<br>
great. But instead of "Preview with filename" I would rather
need
<br>
something like "Path & filename & used" only. Something
like a
<br>
specialized file browser showing all picture files and which
files are
<br>
in use and which ones might be obsolete. This tool would of
course
<br>
have to be folder orientated, not document orientated.
<br>
<br>
Regards
<br>
Rolf
<br>
</blockquote>
<br>
<br>
Try something like:
<br>
<br>
<br>
<br>
# grep -E '(jpg|jpeg|png)' document.sla
<br>
</blockquote>
<p><br>
</p>
<div class="moz-signature">-- <br>
Silvain Dupertuis<br>
Route de Lausanne 335<br>
1293 Bellevue (Switzerland)<br>
tél. +41-(0)22-774.20.67<br>
portable +41-(0)79-604.87.52<br>
web: <a href="https://perso.silvain-dupertuis.org">silvain-dupertuis.org</a></div>
</body>
</html>