![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Requirement | aronmelon | Shell Programming and Scripting | 1 | 05-06-2009 05:17 AM |
| (Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script | praka | Shell Programming and Scripting | 6 | 04-15-2009 07:09 AM |
| Required Shell script for My requirement | ntgobinath | Shell Programming and Scripting | 3 | 05-01-2008 06:00 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
The Problem content is
pin (AND1) { dir : output; cap : hot; tran: slew; } need to write a awk script which can search the Pin AND1 and then tran of the Group pin(AND1) and then insert the code from the file "insert_code" . insert_code file contents . It is a Big file the script should match the keywords #PIN (AND1) and #END in the insert_code section and then insert the content in the file file1 #PIN (AND1) timing () { related_pin : GOOD ; timing_type : setup_rising ; rise_constraint (scalar) { values ("TRIN") ; } fall_constraint (scalar) { values ("BAD") ; } } timing () { related_pin : HSSRESYNCCLKOUT_int ; timing_type : hold_rising ; rise_constraint (scalar) { values ("GOOD") ; } fall_constraint (scalar) { values ("BAD") ; } } } #END the new file file2 content after inserting the code should be : pin (AND1) { dir : output; cap : hot; tran: slew; timing () { related_pin : GOOD ; timing_type : setup_rising ; rise_constraint (scalar) { values ("TRIN") ; } fall_constraint (scalar) { values ("BAD") ; } } timing () { related_pin : HSSRESYNCCLKOUT_int ; timing_type : hold_rising ; rise_constraint (scalar) { values ("GOOD") ; } fall_constraint (scalar) { values ("BAD") ; } } } } CAN ANYONE HELP ME OUT IN THIS URGENTLY Thanks and Regards Kshitij |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|