diff options
author | Louie Shprung <lshprung@tutanota.com> | 2024-06-21 16:22:12 -0400 |
---|---|---|
committer | Louie Shprung <lshprung@tutanota.com> | 2024-06-21 16:22:12 -0400 |
commit | fbb3626d1987cdc4f787ca04d37178cca3009f7b (patch) | |
tree | 8397f311223d7c07d5acbcb3e0f1aab45490fce4 /src/scripts/get_title.sh | |
parent | b7cc10d949a67cbc3685a43c502e93ffaf01c09e (diff) |
Move get_title function to shared scripts
Diffstat (limited to 'src/scripts/get_title.sh')
-rw-r--r-- | src/scripts/get_title.sh | 5 |
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' +} |