On February 9, 2003 10:38 pm, you wrote:
> sounds like twtest.txt has a 'Filename: ' prefix on each line, so you
> may wanna insert a line like this before the sed command

I simply assumed there wouldn't be a "Filename:" string in the twpol.txt file. 
I know the loop gets more "expensive" this way since guaranteed half the sed 
calls will not do anything, but oh well it was quicker that way :)

> also, if you have perl, it can edit files in place (maybe sed can too,
> don't know), so the sed line could be replaced with

Sed can edit files in place provided you have the latest version of sed 
(version 4.0.5). Use the -i option to sed to edit files in place. But not 
knowing what kind of distribution was used I opted to assume an old sed is 
still in use.

-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-

Reply via email to