Find in files: zero pad line numbers
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Find in files: zero pad line numbers
I often use find in files and then save the results to a text file and sort on a column number. I want to keep the file name and line number so that I can always resort to get the original order or to manually search the original file. This would be easier if the file number was left padded with zeroes. e.g. if a file has 100 to 999 lines then give a 3 digit line number e.g. (003) (029) (487). Loved TextPad for many years now! Thanks for a great product!
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm