Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 744 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 744 Bytes

KPhotoAlbum Grep

Simple CLI tool for pulling subsets of photos out of KPhotoAlbum, by scanning the index.xml directly. Base example:

kpa-grep --tag office --since "last month" | tar cf office-pics.tar --files-from=-

finds the last month's files with the office keyword and puts them in a tar file; it uses the default kphotoalbum index file, and outputs full pathnames so tar can just find them.

Additional args:

  • --print0: NUL instead of newline, for xargs -0
  • --relative: paths relative to the index file (ie. don't normalize them)
  • --index=PATH: explicitly specify the index file
  • --json, --xml: output whole records (no surrounding document)

See kpa-grep(1) for specifics.