Page MenuHomeSoftware Heritage
Paste P232

list-sha1.sh
ActivePublic

Authored by ardumont on Mar 14 2018, 10:09 AM.
#!/usr/bin/env bash
psql service=swh-dev -c "copy (select sha1 from content) to stdin" | sed -e 's/^\\\\x//g'

Event Timeline

Note: service=swh-dev is because i use ~/.pg_service.conf and ~/.pgpass which are postgresql's tool.

Locally, you can change this to softwareheritage-dev.