Interesting way to use colors (an easy way) in bash. And a cool way to use shift.

This is from a script that I found online that install GNS3 and vpcs and the like. So this is just a bash code study on it.


First set the colors

Example of use:


First make the function that uses shift.

This will install apps via the function.  In the function is a loop ( the loop as big as the number of arguments fed into installApps function)

Usage of installapp function:

 Another interesting bit


Leave a Reply

Your email address will not be published. Required fields are marked *