Wednesday, 14 January 2009

underline function using echo to reuse it..

my_echo () {
echo -e "\033[4m$@\033[0m"

Reuse it anywhere instead of re-writing the whole set of octal characters.

For example : my_echo "Hello World" prints the Hello World under lined .

($@ in the above function is the list of arguments)

No comments:

Post a Comment

Tweets by @sriramperumalla