![]() |
|
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 |
![]() ![]() |
Gint |
![]()
Post
#2
|
Mike Ginter ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 16,096 Joined: 26-December 02 From: Denver CO. Member No.: 20 Region Association: Rocky Mountains ![]() ![]() |
Here's an even shorter version:
sed -e 's/BA0..../BAO1234/g' > newfilename BTW - There is almost always at least 14 different ways to do the same thing in Unix. Pick one you like the best and go with it. Another thing - I finally met Brad Mayeur Friday night. Told him you said "Hi." Rack time... |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 7th July 2025 - 12:02 AM |
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 ... |