annotate bin/watched.sh @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/usr/bin/bash
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 find /e/Videos -iname '*watched*' | rev | cut -f 1 -d '/' | rev | tr -s ' \t' _ | tr '\n' '\000' | xargs -0 -I ^ -n 1 echo "^" "^" | while read g f; do printf "%s\t%s\n" "$(echo "$g" | grep -Eo 'watched-.{10,10}')" "$f"; done | sort -k1,1