jeff <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to