Re: Command line simulation of postfix ip-matching syntax

2020-06-04 Thread Wietse Venema
Dominic Raferd: > Is there a command-line tool that can simulate postfix's ip-matching syntax > with semicolons and double dots? > > # echo "127.0.0.3"|grepcidr "127.0.0.[1;3;5]" > grepcidr: Not a valid pattern: 127.0.0.[1;3;5] > # echo "127.0.0.3"|grepcidr "127.0.0.[1..5]" > grepcidr: Not a valid

Command line simulation of postfix ip-matching syntax

2020-06-04 Thread Dominic Raferd
Is there a command-line tool that can simulate postfix's ip-matching syntax with semicolons and double dots? # echo "127.0.0.3"|grepcidr "127.0.0.[1;3;5]" grepcidr: Not a valid pattern: 127.0.0.[1;3;5] # echo "127.0.0.3"|grepcidr "127.0.0.[1..5]" grepcidr: Not a valid pattern: 127.0.0.[1..5]