Multiple scripts that are useful but don't deserve their own repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
multiple_scripts/book_search_preview.sh

11 lines
358 B

#!/bin/bash
Instring="$@"
ID=$(echo "${Instring}" | awk '{print $1}')
#Command=$(echo "$Instring" | sed 's/ (/./g' | sed 's/)//g' | sed 's/:man:/:man -Pcat:/g' | awk -F ':' '{print $2 " " $1}')
# install unhtml from pacakage manager
if [ -f $(which unhtml) ];then
calibredb show_metadata "${ID}" | unhtml
else
calibredb show_metadata "${ID}"
fi