rwxrob-dot/scripts/mode2yaml
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

13 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
# 💤 **Break** - out < 30 minutes, *no chat*
while IFS= read -r line; do
mode=${line%%-*}
status=${line#*-}
# echo mode: $mode
# echo status: $status
emoji=${mode%% *}
name=${mode#* }
name=${name//\*/}
printf " - emoji: %s\n name: %s\n status: %s\n flags:\n tags:\n\n" "$emoji" "$name" "$status"
done