extract and compile text from multiple pdfsfor pdf_file in $(ls *.pdf); do
heading=$(echo ${pdf_file/.pdf/})
echo "\#\# ${heading//[-_]/ }\n" >> pdf_text.md
pdftotext ${pdf_file}
txt_file=${pdf_file/.pdf/.txt}
cat ${txt_file} >> pdf_text.md
echo "\n\n" >> pdf_text.md
mkdir processed
mv ${pdf_file} ${txt_file} processed/
done
copy files to remote serverscp <source-filepath> <user@address:destination-filepath>
# Examples:
scp /path/to/file.pdf [email protected]:/path/to/destination
# Or, using an ssh config entry alias `target_server`
scp /path/to/file.pdf target_server:/path/to/destination
search for deleted files by filename patterngit log --diff-filter=D --name-only --pretty=format:"%h %ad %s" -- '*pattern*'