Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would just approach this like text. Something like:

    find -type f -name '*.py' -exec sed -i 's/^\t/    /' {} \+
, until you don't see a diff

Seems simpler to adjust that general approach to whatever codebase and replacement.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: