Skip to main content
2 of 3
edited tags
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

How to break a long string into multiple lines assigned to a variable in linux bash script

I am working towards writing a bash script that contains a variable with a long string value. When I split the string into multiple lines it is throwing error. Can you please suggest on how to split the string into multiple lines and assigned to a variable?

Thanks Kamal