Hi,
warum die Unix-lineEndings mit "tr" gesetzt werden weiss ich nicht ...
Sollte auch mit "sed" als input anstatt "tr" gehen.
| egrep -ao \"FontName.*/\"
... ist die erste Pipe mit der ReEx und den Optionen -a (-a, --text
Process a binary file as if it were text; this is equivalent to
the --binary-files=text option.
) und -o ( -o, --only-matching
Print only the matched (non-empty) parts of a matching line,
with each such part on a separate output line.)
| cut -d '/' -f 2"
Zweite Pipe "cut" setzt im Ziwschenergebnis (nach eGrep) noch einen Delimiter ('/') aus der entstehenden Liste wird der Zweite item ausgewählt ...
Ich orientiere mich immer hier: http://www.manpagez.com/ und hier: http://ss64.com/osx/
Wie gesagt "sed" sollte auch funktionieren:
Hoffentlich findet sich hier keine UnixShell-Fachkraft ;-)
Tschüss
Hans-Gerd