Yes. that is exactly what I was asking!! works great.
but now Ive got few more question, if that is OK:
1. why the suffix is *.sh and not *.awk ?
2. I tried to do the same with awk suffix instaed of sh- and
it and wont work. why?
3. since the 5 different lines are all started with : awk..'...
Hi again,
great answer! - thanks.
I dont need the intermidate files, so I would take the first option.
but what I was really asking is how to take my 5 singles lines, that each works fine , and
integrate them into an awk script that you can run from a terminal by typing >>awk -f...
Hello ,
I wrote a awk script , line by line. each line is an awk one liner.
now I want to intergrate all lines into one AWK script.
I tried to do that for more than couple of hours but no success. each line runs perfect by itself... I must be doing sothing wrong here.
I would appricate your...
HI all,
I want to check if a line end with \ ,if it does I need to attached the next line to it (with one space), with out the \ and so one for the next line. if its not I just need to print it
I must use awk for this. Im using this awk line just to check if the line end up with \ but I get...
HI all,
Im using this awk line to modify my ntlist file :
awk 'BEGIN{FS="[ )(]+"}{print;for(i=1;i<=NF;++i)if($i~/^net[0-9]/)print "R_par("$i" net_lik) res r=1e9"}' input.scs > output.scs
now , there is a new condition that I need to be acount for, as well as the old one (if($i~/^net[0-9]/))...
PHV,
hold on. it works for me. it does add what it should, but look on this please ( its the output that I get):
C0 (net142 net157) mimcap l=12.0u w=12.0u m=1
R_par(net157) gnd) res r=1
C1 (net157 net142) mimcap l=12.0u w=12.0u m=1
R_par(net142) gnd) res r=1
R10 (VSS net0140) rm1 l=230n w=230n...
please see my questions in the previous thread.
I think the new empy line insert is in the blank space after the second print. right?
also what I meant in section 3 is:
what should be the change to make if in a spacific line the word net** apear twice, and I need now two empty line, and to...
also few questions:
1. where exactly in this line it insert the empty line.
2. the new line with the new string come out :
R_par(net99) gnd) res r=1
the bracket after net99 is not need.
3. what should be the change to make if in a spacific line the word net** apear twice, and I need now...
Hi Guys,
I need to edit a netlist. it is a text file that contain many lines, that are dont have a certain order.
I need to find the word ( string) net. the problem is that one time it can be net01 or net56 or any other combination of the word net with any number between 0 to 1000000.
I need is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.