Hello,

I am trying to read a text file given the following first key words at the beggining of the line:

OWNER,HOST,DENY,GRANT

This is what I have so far:

Code:
 
alias test {
  var %x = OWNER,HOST,DENY,GRANT
  var %a = $read(accesslist.txt, w, * $+ %x $+ *)
  echo -a $gettok(%a,1,9) $gettok(%a,2,9) $gettok(%a,3,9) $gettok(%a,4,9) $gettok(%a,5,9) 
}


Whats in the text file:

HOST *!5f67d56b2beb4a8b8ff3433eea054532@* Nickname Indefinite NONE
DENY *!*@123.123.123.* Nickname Indefinite IP BAN: Nickname

I would like to use the alias to basically echo me back each entire line that has OWNER HOST DENY GRANT ect.

Example:

DENY *!*@123.123.123.* Nickname Indefinite IP BAN: Nickname

Please help.

Thanks in advance,

J