Skip to main content
2 of 3
deleted 32 characters in body; edited tags; edited title
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

How can i separate a long path into multiple lines?

I want to separate a long path to multiple lines, like this:

cd foo1/foo1/foo3/foo4/bar

to

cd foo1\
   foo2\
   foo3\
   foo4\
   bar
nextloop
  • 296
  • 1
  • 4
  • 17