



The above code has critical problem, and bug.Ĭritical: Will not work, because on*:text contains no space between on and *:textīug: !Customer will match EVERYTHING-BEFORE!customerANDAFTER, which is clearly not desired behavior. So be sure the to have the rule of thump of every command in a new line. You should almost always few extra code in case of readability, especially which it costs new nothing!, as i remember new lines are free of charge. echo $read(help.txt, w,īecause we don't want the wildcard matching, but a exact match, we would use: $read(customers.txt, w, Nick)Ĭomplete Code: ON *:TEXT:!Customer *:#: code. Returns the text following the match value. Scans the file info.txt for a line beginning with the word mirc and If you're looking for exact match in a new line separate list, then you can use the 'w' switch without using wildcard '*' character.
