From fbb3626d1987cdc4f787ca04d37178cca3009f7b Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Fri, 21 Jun 2024 16:22:12 -0400 Subject: Move get_title function to shared scripts --- src/scripts/get_title.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/scripts/get_title.sh (limited to 'src/scripts/get_title.sh') diff --git a/src/scripts/get_title.sh b/src/scripts/get_title.sh new file mode 100644 index 0000000..da59cb1 --- /dev/null +++ b/src/scripts/get_title.sh @@ -0,0 +1,5 @@ +get_title() { + pup -p -f "$1" 'title text{}' | \ + tr -d \\n | \ + sed 's/\"/\"\"/g' +} -- cgit