summaryrefslogtreecommitdiff
path: root/src/scripts/get_title.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/get_title.sh')
-rw-r--r--src/scripts/get_title.sh5
1 files changed, 5 insertions, 0 deletions
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'
+}