running vi conmands of replacement via unix scripts

Status
Not open for further replies.

avinashbaba

Newbie level 5
Joined
Feb 11, 2011
Messages
9
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,338
i need to change the lib file with adding related pins to before the timing arks. I found that if i can include any special character at the end of pin description like with }# i can make the extraction easy. To include i tried :937s/$/#/g command in vi editor.
I want to run a unix script that can go to the line numbers of the file and work as above vi command and need to know how to write and implement vi commands from unix scripts.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…