Mailinglist Archive: yast-devel (26 mails)

< Previous Next >
Re: [yast-devel] Displaying Package Descriptions
  • From: Johannes Meixner <jsmeix@xxxxxxx>
  • Date: Wed, 8 Sep 2010 13:07:04 +0200 (CEST)
  • Message-id: <alpine.LNX.2.00.1009081304010.7078@xxxxxxxxxxxxxx>

Hello,

On Sep 8 04:42 Tim Serong wrote (shortened):
# rpm -q --qf '%{DESCRIPTION}' $PACKAGE | sed \
-e 's/\&/\&amp;/g' \
-e 's/</\&lt;/g' \
-e 's/>/\&gt;/g' | awk \
'BEGIN { print "<pre>" } { print } END { print "</pre>" }'

I suggest to insert a "fold -s -w 80" before the "sed"
to break possibly too long lines in the RPM description...
;-)


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups