1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/zsh VDB_PATH="/var/db/pkg" track_la() { grep -l '\.la' $(grep -l $1 ${VDB_PATH}/**/REPOSITORY | sed s/REPOSITORY/CONTENTS/) | sed "s:${VDB_PATH}/\([^/]*/[^/]*\)/CONTENTS:\1:" } main() { track_la $1 } main keruspe