I have a custom motd within a bash script that prints cowsay through this command,
/usr/games/fortune | cowsay -f www
I want to find out if there is a way of formatting this output such as shifting the output by a tab or a space ? Do I have to loop through the text manually formatting each line or is there a shorter/better way ?
Thanks in advance
You can use
sedto prepend the output with some other text. The following command adds a tab at the beginning of each line: