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...
  • May 26, 2022
  • 0 Comments
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...
  • May 16, 2022
  • 0 Comments
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...
  • May 16, 2022
  • 0 Comments
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]...
  • May 8, 2022
  • 0 Comments
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...
  • April 10, 2022
  • 0 Comments