On Sun, 2002-04-14 at 13:35, jeff wrote: > first, send replies to me...not the list... > > > i'm no script guru...what i would like to do is become familiar with > piping output to a file and perhaps a little formatting.. > > for this example, i would like the output of 'dpkg -l' to be redirected > to a file called dpkg.html. at the end of every package decription, i > would like to add the <br> tag so it looks nice on the page.
Here's an example using perl. dpkg -l | perl -pe 's/\n/<br>\n/' > dpkg.html Check the manual pages 'perlrun' and 'perlre' for help on Perl's switches and regular expression syntax. -jwb -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]