1
0
mirror of https://github.com/balkian/bitter.git synced 2024-09-28 19:11:41 +00:00
bitter/bin/filter-edges.sh
J. Fernando Sánchez 7724967285 Add filter-edges
2018-08-21 12:57:03 +02:00

11 lines
265 B
Bash

if [ "$#" -lt 2 ]
then
echo "Find edge lines in a file that contain one of the users in a user list."
echo ""
echo "Usage: $0 <file with edges> <file with the list of users>"
exit 1
fi
pv -c -N 'read' "$1" | grep -F -w -f "$2" | pv -lc -N 'found'