1
0
mirror of https://github.com/balkian/bitter.git synced 2024-09-28 19:11:41 +00:00
bitter/bin/filter-edges.sh

11 lines
265 B
Bash
Raw Normal View History

2018-08-21 10:57:03 +00:00
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'