Filter » History » Version 2
Per Amundsen, 08/13/2014 10:04 AM
1 | 1 | Per Amundsen | _Added in 1.9.4_ |
---|---|---|---|
2 | |||
3 | */filter [-asdfkwxnpriocteubglLz] [n-n2] [c s] <infile | dialog id> <outfile | dialog id | alias> [alias] <matchtext>* |
||
4 | 2 | Per Amundsen | |
5 | *Switches* |
||
6 | |||
7 | -w - indicates the parameter is a window |
||
8 | -f - indicates the parameter is a file |
||
9 | -a - sorts filtered lines by calling the optional [alias] parameter, the alias is passed two lines, $1 and $2, it must compare both and return -1, 0, or 1 to indicate relative sort order of these lines to each other |
||
10 | -x - excludes matching lines |
||
11 | -n - prefixes lines with a line number (the Nth match) |
||
12 | -d - TODO |
||
13 | -s - indicates the status window will be used |
||
14 | -p - TODO |
||
15 | -r - specifies the range of lines n to n2 for filtering |
||
16 | -b - strips BURK codes when matching text |
||
17 | -g - indicates the matchtext is a regular expression |
||
18 | -z - TODO |
||
19 | -k - indicates that you have specified an <alias> as the output instead of a window name. The alias will be called with the result of each filtered line with the form $<alias>($1) where $1 is the matched line |
||
20 | -i - indicates that you have provided a [dialog id] custom dialog control as the input |
||
21 | -o - indicates that you have provided a [dialog id] custom dialog control as the output |
||
22 | -c - switch clears the output window/file before writing to it |
||
23 | -t - TODO |
||
24 | -e - TODO |
||
25 | -u - TODO |
||
26 | -l - filters from the side-listbox in the first window |
||
27 | -L - filters to the side-listbox in the second window |