A simple wrapper for semtools parse that copies parsed markdown files to a specified output directory.
mkdir -p ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/jerryjliu/semtools_parseout/main/parseout -o ~/.local/bin/parseout
chmod +x ~/.local/bin/parseoutMake sure ~/.local/bin is on your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
source ~/.zshrcparseout <out_dir> <files...># Parse a single PDF
parseout ./parsed document.pdf
# Parse multiple PDFs
parseout ./parsed scotus_118/*.pdfparseout calls parse under the hood, which outputs parsed markdown files to ~/.parse/. This wrapper copies those files to your specified output directory.
- semtools installed with
parsecommand available