The Computer Oracle

Wrapping long bash commands in script files

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Meadow

--

Chapters
00:00 Wrapping Long Bash Commands In Script Files
00:27 Accepted Answer Score 29
00:39 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.