On Thu, Sep 19, 2002 at 01:42:30AM -0400, Hal Burgiss wrote: : On Wed, Sep 18, 2002 at 11:37:37PM -0400, Anthony E. Greene wrote: : > : > You want to read a list of host names from a file and prepend 'www' : > to any name that does not already start with 'www'. Try this: : : [...] : : If in a hurry: : : perl -pi -e 's/^/www./ unless /^www\./' $your_file
...and in case you change your mind after you run the command, make that -pi.bak, so you'll have $your_file.bak to roll back to... :) -- Jason Costomiris <>< | Technologist, geek, human. jcostom {at} jasons {dot} org | http://www.jasons.org/ Quidquid latine dictum sit, altum viditur. My account, My opinions. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list