alias gfilter {
if !$window($1) { window $1 }
.fopen test $2-
while !$feof { echo $1 $fread(test) }
.fclose test
}
/gfilter <@window> <filepath>
this is just an example
.fopen test $2- - opens a file to use, $2- is the filepath.
while !$feof - checks the end of file hasn't been reached.
$fread(test) - reads the line.
.fclose test - closes the file.