in reply to Editing File In-Place to put tab before UpperCase Letters
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Editing File In-Place to put tab before UpperCase Letters
by ranjan_jajodia (Monk) on Jul 23, 2005 at 06:32 UTC |