diff options
author | Louie S <louie@example.com> | 2023-09-15 10:03:05 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-15 10:03:05 -0400 |
commit | 8b24f247ba26e77623a3d3d183b12b8eec849b8d (patch) | |
tree | 5827f3a477de307e4a43b56da75fa5046de9d6bc /src/multiboot2/get_title | |
parent | e7eda80bcdf575188ab98a4454a4515217967990 (diff) |
Diffstat (limited to 'src/multiboot2/get_title')
-rw-r--r-- | src/multiboot2/get_title | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/multiboot2/get_title b/src/multiboot2/get_title new file mode 100644 index 0000000..6bf29fc --- /dev/null +++ b/src/multiboot2/get_title @@ -0,0 +1,9 @@ +get_title() { + FILE="$1" + + + pup -p -f "$FILE" 'title text{}' | \ + tr -d \\n | \ + sed 's/^Multiboot[^:]*: //' | \ + sed 's/\"/\"\"/g' +} |