How to have multiple path separators in Bash
Posted
by
binW
on Ask Ubuntu
See other posts from Ask Ubuntu
or by binW
Published on 2012-03-28T10:52:15Z
Indexed on
2012/03/28
11:42 UTC
Read the original article
Hit count: 390
I have few python scripts which were written by someone else in Windows. These scripts use double backslash as path separator but when run in Ubuntu they don't work because of this. I can change all \ to / and scripts will work but there are lot of scripts and its a lot of effort to change each \ to /
So my question is: Is it possible to add \ as path separator in Ubuntu or only in Bash so that I dont have to modify these scripts?
© Ask Ubuntu or respective owner