* [9fans] sed
@ 2001-01-04 8:45 William Staniewicz
[not found] ` <wstan@localhostnl.demon.nl>
0 siblings, 1 reply; 14+ messages in thread
From: William Staniewicz @ 2001-01-04 8:45 UTC (permalink / raw)
To: 9fans
Is there a different way to do the following under Plan9?
sed = file1|sed 'N;s/\n/\ /' >file2
or
cat -n file1 >file2
Both would insert line numbers in file2 from file1.
Sorry if this is a basic question.
Bill
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
[not found] ` <wstan@localhostnl.demon.nl>
@ 2001-01-04 17:21 ` Tom Duff
2001-02-09 19:17 ` [9fans] converting to .ps/.pdf William Staniewicz
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: Tom Duff @ 2001-01-04 17:21 UTC (permalink / raw)
To: 9fans
> Is there a different way to do the following under Plan9?
> sed = file1|sed 'N;s/\n/\ /' >file2
> or
> cat -n file1 >file2
Does
awk '{print NR "\t" $0}' file1 >file2
not work?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] converting to .ps/.pdf
2001-02-09 19:17 ` [9fans] converting to .ps/.pdf William Staniewicz
@ 2001-02-09 18:48 ` Scott Schwartz
0 siblings, 0 replies; 14+ messages in thread
From: Scott Schwartz @ 2001-02-09 18:48 UTC (permalink / raw)
To: 9fans
| Taking that one step further, how can I convert
| to a .pdf file within Plan9?
Use ghostscript.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [9fans] converting to .ps/.pdf
@ 2001-02-09 19:17 ` William Staniewicz
2001-02-09 18:48 ` Scott Schwartz
0 siblings, 1 reply; 14+ messages in thread
From: William Staniewicz @ 2001-02-09 19:17 UTC (permalink / raw)
To: 9fans
After composing a document in ACME or SAM,
is this a good way to convert to a .ps file format?
lp -dstdout -pppost file.txt > file.ps
Taking that one step further, how can I convert
to a .pdf file within Plan9?
-Bill
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] macro files with troff
2001-02-20 3:10 ` [9fans] macro files with troff William Staniewicz
@ 2001-02-19 21:21 ` Scott Schwartz
0 siblings, 0 replies; 14+ messages in thread
From: Scott Schwartz @ 2001-02-19 21:21 UTC (permalink / raw)
To: 9fans
The Research Unix 10th Edition documentation is a good source for troff
related material.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [9fans] macro files with troff
@ 2001-02-20 3:10 ` William Staniewicz
2001-02-19 21:21 ` Scott Schwartz
0 siblings, 1 reply; 14+ messages in thread
From: William Staniewicz @ 2001-02-20 3:10 UTC (permalink / raw)
To: 9fans
I would like to begin using troff to prepare some
document files. So far, I have looked over
/sys/doc/troff.ps which includes the manual and
tutorial. It appears the easiest way to start is to
invoke troff with a standard macro/package like
-ms or -mm. The definitions for these I presume are in
/sys/lib/tmac.
When I begin writing the document with acme, how do I
identify all the 'requests' set in the packages? For example, Would I need
to look in /sys/lib/tmac/tmac.s for info on the -ms
package or is there a table set up for them somewhere?
Any other hints on how to begin using this would be
appreciated.
-Bill
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] Acme definition
2001-03-12 5:27 ` [9fans] Acme definition William Staniewicz
@ 2001-03-11 23:43 ` George Michaelson
0 siblings, 0 replies; 14+ messages in thread
From: George Michaelson @ 2001-03-11 23:43 UTC (permalink / raw)
To: 9fans
The Epitome seems to embody almost all concepts Acme tried to reach for,
without the downside connotations. Plus, as an added benefit, it has only
one correct pronounciation but at least two plausible ones, permitting the
cogniscenti to discern those of a less 'au courant' comprehension.
Wiley should have learned from his mistakes. Nowadays, I suspect a smart
lawyer could injunct either Acme, or the new mexico roads department, possibly
both.
-George
--
George Michaelson | DSTC Pty Ltd
Email: ggm@dstc.edu.au | University of Qld 4072
Phone: +61 7 3365 4310 | Australia
Fax: +61 7 3365 4311 | http://www.dstc.edu.au
^ permalink raw reply [flat|nested] 14+ messages in thread
* [9fans] Acme definition
@ 2001-03-12 5:27 ` William Staniewicz
2001-03-11 23:43 ` George Michaelson
0 siblings, 1 reply; 14+ messages in thread
From: William Staniewicz @ 2001-03-12 5:27 UTC (permalink / raw)
To: 9fans
A friend asked me about the origin of the word "Acme". My first
impulse was to consult the "OED", but not having one handy, I resorted
to some online sources. Most neglected to include a reference to one
of my favorite contexts: The Roadrunner cartoon (btw, while living in
Texas, I actually saw one run across the street in front of my car, it
actually looked like the one in the Warner Bros' series and moved like
it too!).
Acme n.
[from Greek `akme', highest point of perfection or achievement] The
canonical supplier of bizarre, elaborate, and non-functional gadgetry
- where Rube Goldberg and Heath Robinson (two cartoonists who
specialized in elaborate contraptions) shop. The name has been
humorously expanded as A (or American) Company Making Everything. (In
fact, Acme was a real brand sold from Sears Roebuck catalogs in the
early 1900s.) Describing some X as an "Acme X" either means "This is
insanely great", or, more likely, "This looks insanely great on paper,
but in practice it's really easy to shoot yourself in the foot with
it." Compare pistol.
This term, specially cherished by American hackers and explained here
for the benefit of our overseas brethren, comes from the Warner
Brothers' series of "Roadrunner" cartoons. In these cartoons, the
famished Wile E. Coyote was forever attempting to catch up with, trap,
and eat the Roadrunner. His attempts usually involved one or more
high-technology Rube Goldberg devices - rocket jetpacks, catapults,
magnetic traps, high-powered slingshots, etc. These were usually
delivered in large cardboard boxes, labeled prominently with the Acme
name. These devices invariably malfunctioned in improbable and
violent ways.
-Bill
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
@ 2001-01-04 18:39 rog
0 siblings, 0 replies; 14+ messages in thread
From: rog @ 2001-01-04 18:39 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 78 bytes --]
i always used:
grep -n '^' file1 > file2
but that's just me, i guess.
[-- Attachment #2: Type: message/rfc822, Size: 1893 bytes --]
To: cse.psu.edu!9fans
Subject: Re: [9fans] sed
Date: Thu, 4 Jan 2001 09:21:58 -0800
Message-ID: <10101040921.ZM156152@marvin>
> Is there a different way to do the following under Plan9?
> sed = file1|sed 'N;s/\n/\ /' >file2
> or
> cat -n file1 >file2
Does
awk '{print NR "\t" $0}' file1 >file2
not work?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
@ 2001-01-04 18:10 rob pike
0 siblings, 0 replies; 14+ messages in thread
From: rob pike @ 2001-01-04 18:10 UTC (permalink / raw)
To: 9fans
Another of my methods was
grep -n '^' file1 | sed 's/:/ /' > file2
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
@ 2001-01-04 17:58 nigel
0 siblings, 0 replies; 14+ messages in thread
From: nigel @ 2001-01-04 17:58 UTC (permalink / raw)
To: 9fans
Good if you want colons!
> i always used:
> grep -n '^' file1 > file2
>
> but that's just me, i guess.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
@ 2001-01-04 17:28 rob pike
0 siblings, 0 replies; 14+ messages in thread
From: rob pike @ 2001-01-04 17:28 UTC (permalink / raw)
To: 9fans
I had a list of several ways to do it, of which the second was
awk '{print NR "\t" $0}' file1 >file2
but decided the shortest was also the most straightforward.
pr -t -n file1 > file2
-rob
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
@ 2001-01-04 3:15 jmk
0 siblings, 0 replies; 14+ messages in thread
From: jmk @ 2001-01-04 3:15 UTC (permalink / raw)
To: 9fans
"rob pike" <rob@plan9.bell-labs.com>:
pr -t -n file1 > file2
make sure you use
pr -t -n file1 > file2
pr -n -t file1 > file2
pr -tn file1 > file2
but not
pr -nt file1 > file2
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] sed
@ 2001-01-04 2:51 rob pike
0 siblings, 0 replies; 14+ messages in thread
From: rob pike @ 2001-01-04 2:51 UTC (permalink / raw)
To: 9fans
pr -t -n file1 > file2
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2001-03-12 5:27 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-04 8:45 [9fans] sed William Staniewicz
[not found] ` <wstan@localhostnl.demon.nl>
2001-01-04 17:21 ` Tom Duff
2001-02-09 19:17 ` [9fans] converting to .ps/.pdf William Staniewicz
2001-02-09 18:48 ` Scott Schwartz
2001-02-20 3:10 ` [9fans] macro files with troff William Staniewicz
2001-02-19 21:21 ` Scott Schwartz
2001-03-12 5:27 ` [9fans] Acme definition William Staniewicz
2001-03-11 23:43 ` George Michaelson
-- strict thread matches above, loose matches on Subject: below --
2001-01-04 18:39 [9fans] sed rog
2001-01-04 18:10 rob pike
2001-01-04 17:58 nigel
2001-01-04 17:28 rob pike
2001-01-04 3:15 jmk
2001-01-04 2:51 rob pike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).