![]() |
|
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 |
![]() ![]() |
fiid |
![]()
Post
#2
|
Turbo Megasquirted Subaru Member ![]() ![]() ![]() ![]() Group: Members Posts: 2,827 Joined: 7-April 03 From: San Francisco, CA Member No.: 530 Region Association: Northern California ![]() |
QUOTE(Root_Werks @ Aug 9 2004, 08:39 AM) (IMG:style_emoticons/default/idea.gif) Oh man, it has been a while. But even Solaris should have sed: sed /BOA2440/BAO9999/g Is that it? Man, I need to fire up my linux box and play around some again. First string you want to look for, second one whatever you want to change it to and the "g" for global. (IMG:style_emoticons/default/wacko.gif) I think? you can change this to match any 4 numbers by doing something like: /BAO[0-9]{4,4}/BAOxxxx/g (You can probably refine this a bit - read the man page or appropriate o'reilly book) Fiid. |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 6th July 2025 - 11:45 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 ... |