1
0
mirror of https://github.com/balkian/bitter.git synced 2024-12-22 00:18:12 +00:00

Add filter-edges

This commit is contained in:
J. Fernando Sánchez 2018-08-21 12:57:03 +02:00
parent dd662acd22
commit 7724967285

10
bin/filter-edges.sh Normal file
View File

@ -0,0 +1,10 @@
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'