diff options
Diffstat (limited to 'src/info-reader/get_title')
-rw-r--r-- | src/info-reader/get_title | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/info-reader/get_title b/src/info-reader/get_title new file mode 100644 index 0000000..b09c385 --- /dev/null +++ b/src/info-reader/get_title @@ -0,0 +1,8 @@ +get_title() { + FILE="$1" + + pup -p -f "$FILE" 'title text{}' | \ + tr -d \\n | \ + sed 's/ ([^)]*GNU[^)]*)$//' | \ + sed 's/\"/\"\"/g' +} |