ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, how about you show your extraction and we can see about how to implement?
Curious if your final product has a typo error or not as 0.50 translated to 0.5 but 0.01
somehow translated to 0.1??
Also, not sure if intended, but why is the final output in the reverse order of the original?
Is this required? (ie gnd is in first line of input but last two lines of output)
Well, how about you show your extraction and we can see about how to implement?
Curious if your final product has a typo error or not as 0.50 translated to 0.5 but 0.01
somehow translated to 0.1??
Also, not sure if intended, but why is the final output in the reverse order of the original?
Is this required? (ie gnd is in first line of input but last two lines of output)
The replaced text is not a munge of the original. It is simply what is required as a replacement. The extraction is a simple command line sed statement: sed '/always/,/end/p' which removes the first block from the file. That part is easy but it does nothing to replace the new block.
Through BFAI (Brute Force And Ignorance) I've made some progress.
The replaced text is not a munge of the original. It is simply what is required as a replacement. The extraction is a simple command line sed statement: sed '/always/,/end/p' which removes the first block from the file. That part is easy but it does nothing to replace the new block.
Through BFAI (Brute Force And Ignorance) I've made some progress.
One minute per cut and paste means 662 minutes for the whole job, i.e. 11 hours to do the job manually. Which just proves my point.
Or you think 1 minute per such cut and paste is too little ?
It may have seemed like I spent a lot of time on this because of how long it took me to come back to the forum. But I didn't work all that time on nothing but this script. Each cut n paste would likely take less than a minute. However, I can't ignore the rest of my job working on one fix. As is, the total time I spent on this was nowhere near 8 - 10 hours; More like one hour.
Besides that, the 622 modules was for one set of stdcells on one process. I've already found another set that needs the exact same fix and it contains 503 modules and there could be more. But now I have a solution and it only takes a few seconds and the issue is solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.