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

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -