The Computer Oracle

Wrapping long bash commands in script files

--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------

Track title: CC O Beethoven - Piano Sonata No 3 in C

--

Chapters
00:00 Question
00:47 Accepted answer (Score 28)
01:04 Thank you

--

Full question
https://superuser.com/questions/237072/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#commandline #bash #wordwrap

#avk47



ACCEPTED ANSWER

Score 29


Works fine here. Make sure that the backslash is the very last character on the line, and that the file uses *nix line endings.