You are not logged in.

#26 2014-01-25 21:34:26

korn36
Member
Registered: 2014-01-14
Posts: 111

Re: [SOLVED] Case-insensitive filesystem issue

Scimmia wrote:

I haven't tried it, but how about

sed -i 's|\(env python$\|/bin/python$\)|&2|'

?

This didn't work, but this has worked fine:

sed -i 's/\(bin\/env\ python$\|bin\/python$\)/bin\/env\ python2/g'

And the full command with find:

find . -name "*.py" -exec sed -i 's/\(bin\/env\ python$\|bin\/python$\)/bin\/env\ python2/g' {} \;

Last edited by korn36 (2014-01-25 21:37:14)

Offline

#27 2014-01-25 21:42:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Case-insensitive filesystem issue

hmm, probably better to just look at the project and see which shebangs it uses.

Offline

Board footer

Powered by FluxBB