Skip to content

Instantly share code, notes, and snippets.

@pgwillia
Created January 29, 2019 21:19
Show Gist options
  • Save pgwillia/fbd0dbd88091970432210f5ca7d92579 to your computer and use it in GitHub Desktop.
Save pgwillia/fbd0dbd88091970432210f5ca7d92579 to your computer and use it in GitHub Desktop.
Edit MARC files
# if you start with a file of MARC records, you can convert them to a text file using yaz-marcdump
yaz-marcdump records.mrc > records.txt
# To edit the records on the command line, you can use vim (or whatever your favorite text editor is).
# When you’re done, to convert them back to MARC, use
yaz-marcdump -i line -o marc records.txt > edited-records.mrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment