blob: 0a19d438cf83ca6681469b20610a09dd2ff99e93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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 [ -z "$COLUMNS" ];then
COLUMNS="$(tput cols)"
[ -z "$COLUMNS"] && COLUMNS=20
fi
printf "\\033[;1m"
for ((j=0;j<$COLUMNS;++j)); do printf -- "-"; done
printf "\\n %b\\n" "$i"
for ((j=0;j<$COLUMNS;++j)); do printf -- "-"; done
printf "\\033[0m\\n"
printf "%b\\n" "${FLARR[@]}"
done
|