dugout-> filters.dugout
Make generic filters accessible to the environment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
###############################################################################
## COPYRIGHT (C) 2020-2026 NEW ENTITY OPERATIONS INC. ALL RIGHTS RESERVED
## INSTANCE: filters.dugout
## MODIFIED: 2026/04/20
## OVERVIEW: Make generic filters accessible to the environment
###############################################################################
## Filters can be used on any I/O task that produces output
###############################################################################
## -> Inquisitor filters
## Use: c <search_term> | <filter_inquisitor_*>
## inquisitor package commands
filter_inquisitor_pc() {
cut -d'"' -f 3- | awk -F ""*,"*" '{ print $2 }'
}
## inquisitor package and description
filter_inquisitor_pd() {
cut -d'"' -f 3- | awk -F ""*,"*" '{ print $2 " | " $3 }'
}