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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -