filter file based on keywords then manipulate - 12/08/05 08:13 PM
Have file with data that always begins with a "nick" before the data separated by spaces i.e, "bobby246 You have been randomly selected for suchandsuch and soinforth for whatsathing."
Need to extract multiple lines beginning with a particular nick to msg to nick. i.e,
bobby246 You your wife is leaving you
bobby246 I dont like your pink shirt
bobby246 you really could use deodorant more
note: only in begining of line) not filter
diannaLee I really like bobby246 he wears them nice pink shirts and his wife is leaving him
Need to extract multiple lines beginning with a particular nick to msg to nick. i.e,
bobby246 You your wife is leaving you
bobby246 I dont like your pink shirt
bobby246 you really could use deodorant more
note: only in begining of line) not filter
diannaLee I really like bobby246 he wears them nice pink shirts and his wife is leaving him
Code:
on *:join:#: { if ($lines(thatfile.txt) != 0) { filter -ff thatfile.txt thisfile2.txt $nick $+ * } var %x = 1, %lines = $lines(thisfile2.txt) while (%x <= $lines(thisfile2.txt) { msg $nick $read(thisfile2.txt,%x) inc %x } }