Re: scripting
jeff <jmr71769@earthlink.net> writes:
> dpkg -l | sed -e 's/$/<br>/ > dpkg.html
> dpkg -l | perl -e 'while(<>) { s/$/<br>/ && print }' > dpkg.html
<golf type="perl">
dpkg -l | perl -lpe 's/$/<BR>/' > dpkg.html
</golf>
Darn, I thought I could make it shorter than the sed version...
john.
--
"However, complexity is not always the enemy."
-- Larry Wall (Open Sources, 1999 O'Reilly and Associates)
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: