Let's do it in unicode, perl -pi -e's/(\p{IsUpper})/\t$1/g' text.txt If you have some way of determining whether you want spaces or tabs, you should say what it is.
After Compline,
Zaxo
In reply to Re: Editing File In-Place to put tab before UpperCase Letters
by Zaxo
in thread Editing File In-Place to put tab before UpperCase Letters
by ranjan_jajodia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |