diff options
-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 |