simple-scripts
A collection of simple but useful Bash scripts so I don't have to remember the commands. Most scripts deal with .pdf or video file manipulation/conversion. Some scripts have become less "simple" over time as I add more functionality, but my goal is to make the code easy to understand over making it compact or efficient.
© 2020 Benjamin Steenkamer. See LICENSE file for usage details.
List of Scripts
avcomb.sh- Combine the audio stream of video 1 with the video stream of video 2.
- Requires
ffmpeg.
djvu2pdf.sh- Convert
.djvuto.pdf. - Requires
ddjvu.
- Convert
hashmd.sh- Calculates the checksum/hashes of all the files in a folder and generates a Markdown-style table of the results.
- Requires
libarchive-zip-perl. - See an example of the tables generated here.
pdf2png2pdf.sh- Convert
.pdfto.pngand then back to.pdf. - Useful for deactivating links in the
.pdf. - Requires
convertfromimagemagick.
- Convert
pdfcombine.sh- Combine multiple
.pdffiles into a single.pdf. - Requires
pdftk.
- Combine multiple
upgrade.sh- Fetch and update packages; then remove old packages.
- Uses
apt-getpackage manager.
vid2avi.sh- Convert a compatible video container file to
.aviwhile trying to maintain good quality. - Requires
ffmpeg.
- Convert a compatible video container file to