Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: menyl
  • Order by date
  1. menyl

    Hello , I wrote a awk script , l

    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..'...
  2. menyl

    Hello , I wrote a awk script , l

    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...
  3. menyl

    Hello , I wrote a awk script , l

    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...
  4. menyl

    check if line end with \

    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...
  5. menyl

    check if a variable exist

    this is the input.scs file // Library name: RFPOC016_fe // Cell name: RFPOC016_fe_LNA1_ind // View name: schematic subckt RFPOC016_fe_LNA1_ind C L1 L2 R2 (L2 net044) rmt l=1.5u w=8u mf=(1) R1 (net036 L1) rmt l=1.5u w=8u mf=(1) R3 (net044 C) rm4 l=1.5u w=8u mf=(1) R4 (C net036)...
  6. menyl

    check if a variable exist

    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]/))...
  7. menyl

    detect the field number of a word, and print the number

    Perfect! works exactly as I need it! Thank you so much. just wondering- was it the FS that solved the extra bracket problem? Thanks meny
  8. menyl

    detect the field number of a word, and print the number

    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...
  9. menyl

    detect the field number of a word, and print the number

    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...
  10. menyl

    detect the field number of a word, and print the number

    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...
  11. menyl

    detect the field number of a word, and print the number

    Thank you very much. could you provide some explantions?
  12. menyl

    detect the field number of a word, and print the number

    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...

Part and Inventory Search

Back
Top