![]() |
|
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG.
This site is not affiliated with Porsche in any way. Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners. |
|
![]() |
Rusty |
![]() ![]()
Post
#1
|
914 Guru ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 7,973 Joined: 24-December 02 From: North Alabama Member No.: 6 Region Association: South East States ![]() ![]() ![]() |
Sorry for the OT post.
I have a text file that I need to edit. I need to edit every record on that file (record positions 34-37) to change whatever is in those positions (only) to a four digit number. What is currently in those positions varies dramatically. My only text editor I have on the system is vi. Anyone got a command I can use? thanks, Lawrence |
![]() ![]() |
mikester |
![]()
Post
#2
|
Member ![]() ![]() Group: Members Posts: 326 Joined: 18-June 03 From: CA Member No.: 837 ![]() |
The simplest way to do this is in vi.
If it's only dates between 3351 to 4222 then maybe you could try the following. in vi type the following; :%s/3351/newstring/g Then press enter, that will replace all of the 3351's in the file with the new string - if 3351 occurs anywhere else in the line though it will be replaced as well. You could do this for each date you want to change - depending on the number of entries it's relatively quick. YMMV (IMG:style_emoticons/default/beerchug.gif) |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 6th July 2025 - 11:48 PM |
All rights reserved 914World.com © since 2002 |
914World.com is the fastest growing online 914 community! We have it all, classifieds, events, forums, vendors, parts, autocross, racing, technical articles, events calendar, newsletter, restoration, gallery, archives, history and more for your Porsche 914 ... |