archlinux - Modify or configure output of linux command in bash -
currently learning bash scripting. so, wanted know how can modify output of linux command. specific, entered command , after pressing enter, every line should start '->' or symbol. e.g: in arch-linux, when use pacman or yaourt install packages, "==>" "->" "::" proceeding information. want output similar that.
not sure trying but… looking such as:
function pprint() { echo "==> " $1 }
which can use such in scripts:
pprint "hey there"
to output following:
===> hey there
Comments
Post a Comment