Bulk download using wget The other day, I had to make a bulk download of pdf files. This was most easily accomplished using wget command.
wget -P ~/ddhakal/ https://epaper.ekantipur.com/kathmandupost/download/2019-06-{10..30} Here,
-P: provides directory prefix for the downloaded file. {10.
Use the following command to search for “blocking” characters inside one/more pdf file/s containing character “Statistical” line by line with stated arguments.
pdfgrep -Hin -C 120 "blocking" "$(ls | grep "Statistical.*")" Someone advised me to use the following to refer to relative path while addressing the filename issue, but, unfortunate me, it doesn’t work.
Image resizing and cropping using bash script This script benefits from following pages: https://stackoverflow.com/questions/918886/how-do-i-split-a-string-on-a-delimiter-in-bash https://stackoverflow.com/questions/18544359/how-to-read-user-input-into-a-variable-in-bash https://github.com/DeependraD/DeependraD.github.io/blob/sources/deploy.sh
Note: Set the English locale for the date command.
#!/usr/bin/env bash export LC_TIME=en_US.UTF-8 msg() { printf "\033[1;32m :: %s\n\033[0m" "$1" } msg "To run this script you must have imagemagick library installed.