www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=date:from:to:subject:message-id:mail-followup-to:references | |
:mime-version:content-type:content-disposition:in-reply-to | |
:user-agent; | |
bh=S0p7hAvKGAxUNrAt7MRT2Z47YSZ5LmXKETeolsUVBrQ=; | |
b=lprg4mpWRHQ1yhxMJY0atotaHzOwGyja9Gp5i1ezJZxTS59MVz5wwVIZEeZ08Rj7yp | |
vKfMEdN54oAefzcOPGQbsg+YVGDKQ0/G7qBzMbDYeVyX+MwJEwiBex6iKDO01QUdPu0X | |
/lvnwm+KRmnSbROdM2C5+ClCdC1p2HlyI9Zexkj4sEofH8I9Zz/cOE4Ub8vvu/Rn6Fln | |
UNOGvBprCpevY+fsiF7R7MxGgUkF4tBx+0VOskEHPAkGIGm5Cw5ixexNFk412ZopVZFk | |
X7ee9gK8YsoQwhXYygqSgLsQoh08++JKiB5SigQM9iMo/Oei+2zmVvP8t3oTKvCg2/Wn | |
D0nw== | |
X-Received: | by 10.152.8.115 with SMTP id q19mr11837455laa.16.1377194938902; |
Thu, 22 Aug 2013 11:08:58 -0700 (PDT) | |
Date: | Thu, 22 Aug 2013 22:08:53 +0400 |
From: | Vladimir Zhbanov <vzhbanov AT gmail DOT com> |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] Little help needed with sed script (How to |
contribute standard symbol files?) | |
Message-ID: | <20130822180853.GA29234@localhost.localdomain> |
Mail-Followup-To: | geda-user AT delorie DOT com |
References: | <521481EE DOT 2010103 AT iae DOT nl> |
<87zjsa7uh5 DOT fsf AT harrington DOT peter-b DOT co DOT uk> | |
<5215C7BB DOT 6040906 AT iae DOT nl> | |
<5215FFBC DOT 6030608 AT iae DOT nl> | |
MIME-Version: | 1.0 |
In-Reply-To: | <5215FFBC.6030608@iae.nl> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Thu, Aug 22, 2013 at 02:10:36PM +0200, myken wrote: > Hello All, > As Peter suggested am I trying to fix the generation of the VHDL symbols. > I have changed the "script.sed" file in the vhdl directory and that > one works. > Now I made a new sed script (scriptpad.sed) to deal with the > remaining symbols. > Within that script I have the command: > > /^T.*/ N > s/\(^T.*\)\(pin.*=IPAD\)/&\n\1pintype=IN/ > > copy/past/adapted from "script.sed" > The result is that after: > T 170 38 5 10 1 1 0 0 1 > pinnumber=IPAD > the script copies the first line and add a line with pintype=... > T 170 38 5 10 1 1 0 0 1 > pintype=IN > > Almost perfect, it is what I want, but since the T 170 ... line is a > copy of the line corresponding with the pinnumber line, the > visibility attribute is set to 1 and that's not what I want. In the > schematic IPAD and IN are printed overlaying. > > Can anyone help me solve this? How do I set the 6th attribute of the > copied line to 0? > Resulting in: > T 170 38 5 10 0 1 0 0 1 > pintype=IN Try this: /^T.*/ N s/\(^T [0-9]\+ [0-9]\+ [0-9]\+ [0-9]\+ \)\([01]\)\(.*\)\(pin.*=IPAD\)/&\n\10\3pintype=IN/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |