Rusty Haddock wrote: > > #!/bin/sh > > v='9899' > > cat file | while read s1 s2 > > do > > if [ "$s2" != "$v" ]; then > > echo $s1 '--' $s2 > > cat "$s1" ' ' "$IPADDR" >> file > > sed -i '/$s2/ d' file > For clarity, I didn't write the above and neither did Rusty Regards Fred James