summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-06-21 16:22:12 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-06-21 16:22:12 -0400
commitfbb3626d1987cdc4f787ca04d37178cca3009f7b (patch)
tree8397f311223d7c07d5acbcb3e0f1aab45490fce4 /src/scripts
parentb7cc10d949a67cbc3685a43c502e93ffaf01c09e (diff)
Move get_title function to shared scripts
Diffstat (limited to 'src/scripts')
-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'
+}