manner 521 Bytes
Newer Older
1
2
#!/bin/bash
#
Guillaume Mella's avatar
Guillaume Mella committed
3
# Prerequisites:
Guillaume Mella's avatar
Guillaume Mella committed
4
5
#  - banner utility (provides by sysvbanner linux package)
#
6
# Copyleft Guillaume Mella
Guillaume Mella's avatar
Guillaume Mella committed
7
#  source available at https://gricad-gitlab.univ-grenoble-alpes.fr/GuillaumeMella/etabli/tree/master/fourre-tout/bin
8
#
Guillaume Mella's avatar
Guillaume Mella committed
9
10
# Synopsis: 
#   manner toto\\nest\\nun\\ncon
11
12
13
14
15
16
msg="$*"

echo -e $msg | while read line 
do 
  banner "$line" | nl | sed "s/ /  /g" | tr -d '\t'  | sed "s/1/      /g" |sed "s/2/     /g" |sed "s/3/    /g" |sed "s/4/   /g" |sed "s/5/  /g"  | sed "s@#@_/@g" |tr  6 ' ' | cut -c13-
done