hi i am trying to make a script that deletes an entry from a txt file

my two text files are called nuked and unnuked..what i am trying to achieve is this

it writes to nuked txt on a on txt contaning *nuked* ect
as in

[NUKED] discovery.Channel.a.Day.In.The.Life.Of.Japan.Bracing.For.The.Big.One.HDTV.XviD-G4L]

and also writes to the unnuked.txt on the on txt *unnuked* as in..

[UNNUKED] [Discovery.Channel.a.Day.In.The.Life.Of.Japan.Bracing.For.The.Big.One.HDTV.XviD-G4L]

now what i am trying to get it to do is this..when the trigger for unnuked is displayed..it searches the nuke.txt and if it finds the match ie Discovery.Channel.a.Day.In.The.Life.Of.Japan.Bracing.For.The.Big.One.HDTV.XviD-G4L it will delete the entry from the nuke.txt but still write it to unnuked.txt

so basically it finds the whole string and deletes it from the file..i hope this makes sense..anyways any help is more then welcomed smile