![](https://static.wixstatic.com/media/3b5532_ad9c0db6ce4c443aa772e259d6380d5f~mv2.png/v1/fill/w_339,h_49,al_c,q_85,enc_auto/3b5532_ad9c0db6ce4c443aa772e259d6380d5f~mv2.png)
This post lists a simple sed script that will split a bash script written in a single line.
Note: this script is a hack; it can produce some wrong output. I've posted it because I've found it helpful in splitting apart bash scripts that have been squashed into a single line. Its also written simply so you can change and extend it easily.
The Script
Copy this and save it as sedscript. Call with sed -f sedscript <oneline.sh >multiline.sh
References
HTML Escape / Unescape at [link]