mapcidr icon indicating copy to clipboard operation
mapcidr copied to clipboard

[Feature] -quiet -q -silent flags to match/filter logic

Open brenocss opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Similar to grep usage

echo 'test' | grep 'te' -q && echo 'te found'

add quiet to just return true/false exit status

       -q, --quiet, --silent
              Quiet; do not write anything to standard output.  Exit immediately with zero status  if  any  match  is
              found, even if an error was detected.  Also see the -s or --no-messages option

https://github.com/projectdiscovery/mapcidr/issues/48 Describe the solution you'd like

mapcidr -cidr 192.168.1.0/24 -m 192.168.1.0/25 -q && echo ipfound

brenocss avatar Jun 06 '22 05:06 brenocss