diff options
author | mail_redacted_for_web | 2021-09-17 12:34:33 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2021-09-17 12:34:33 +0200 |
commit | 01abe525cbe2b0a58856988d2dc3bde25f684268 (patch) | |
tree | 481c57689131fae981529d81a0ebbad6a4b7419b | |
parent | 5b8462dd58bedc1fa70080bbc6342dbc4262a4f9 (diff) | |
download | etcissue-01abe525cbe2b0a58856988d2dc3bde25f684268.tar.bz2 |
+display
-rwxr-xr-x | issues/display | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/issues/display b/issues/display new file mode 100755 index 0000000..a66553d --- /dev/null +++ b/issues/display @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +if [ -n "$1" ];then + FARR="$1" + if [ ! -e "$FARR" ];then FARR="$FARR.issue";fi +else + IFS=$'\n' + FARR=( $(ls *.issue) ) + unset IFS +fi +for i in "${FARR[@]}";do + IFS=$'\n' + FLARR=( $(cat "$i") ) + unset IFS + if command -v figlet >/dev/null;then printf "%b\\n" "$i"|figlet; else printf "%b\\n" "$i";fi + printf "%b\\n" "${FLARR[@]}" +done |