This question already has answers here: Closed 10 years ago. Possible Duplicate: Reference: Comparing PHP’s print and echo Is there any major and fundamental difference between these two functions...
How could I do this with echo? perl -E 'say "=" x 100' 35 Answers 35 You can use: printf '=%.0s' {1..100} How this works: Bash expands {1..100} so...
I’m writing a Bash script that prints some text to the screen: echo "Some Text" Can I format the text? I would like to make it bold. 5 Answers...
I have a Bash script that runs a program with parameters. That program outputs some status (doing this, doing that…). There isn’t any option for this program to be...
How do I echo one or more tab characters using a bash script? When I run this code res=" "x # res = "\t\tx" echo '['$res']' # expect [\t\tx]...
I want to write some pre-defined texts to a file with the following: text="this is line one\n this is line two\n this is line three" echo -e $text >...
I am trying to print a text in the terminal using echo command. I want to print the text in a red color. How can I do that? 3...
In Bash, tried this: echo -e "Hello,\nWorld!" But it doesn’t print a newline, only \n. How can I make it print the newline? I’m using Ubuntu 11.04 (Natty Narwhal). 20...