* [9fans] pbcopy/pbpaste like functionality for snarf/paste buffers
@ 2006-07-05 23:13 David Leimbach
2006-07-05 23:25 ` Tim Wiess
2006-07-05 23:26 ` Steve Simon
0 siblings, 2 replies; 3+ messages in thread
From: David Leimbach @ 2006-07-05 23:13 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
One of my favorite things about Mac OS X is that the clipboard buffer
can be accessed in two ways from the command line.
For example I use an application for taking meeting notes that just
lets me plot out an outline then export it in an XML format. I throw
it through a sed/awk script (because who the hell wants to mess with
XSLT unless they have to?) which dumps out a simplified wiki syntax
version for posting meeting minutes to an internal page.
I can just do "notes-to-wiki.sh somefile.xml | pbcopy"
Likewise I've been known to grab stuff off of a page and then pass it
through some filters.
Copy stuff to the clipboard buffer then do.
"pbpaste | filter-scripts"
Etc.
Is there equivalent technology for Plan 9/Rio? How hard would this be to add.
Is it already somewhere in my Rio fileystem. Don't have access to my
plan 9 box at the moment.
I hope it's not terribly simple :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] pbcopy/pbpaste like functionality for snarf/paste buffers
2006-07-05 23:13 [9fans] pbcopy/pbpaste like functionality for snarf/paste buffers David Leimbach
@ 2006-07-05 23:25 ` Tim Wiess
2006-07-05 23:26 ` Steve Simon
1 sibling, 0 replies; 3+ messages in thread
From: Tim Wiess @ 2006-07-05 23:25 UTC (permalink / raw)
To: 9fans
cat /dev/snarf
> One of my favorite things about Mac OS X is that the clipboard buffer
> can be accessed in two ways from the command line.
>
> For example I use an application for taking meeting notes that just
> lets me plot out an outline then export it in an XML format. I throw
> it through a sed/awk script (because who the hell wants to mess with
> XSLT unless they have to?) which dumps out a simplified wiki syntax
> version for posting meeting minutes to an internal page.
>
> I can just do "notes-to-wiki.sh somefile.xml | pbcopy"
>
> Likewise I've been known to grab stuff off of a page and then pass it
> through some filters.
>
> Copy stuff to the clipboard buffer then do.
>
> "pbpaste | filter-scripts"
>
> Etc.
>
> Is there equivalent technology for Plan 9/Rio? How hard would this be to add.
>
> Is it already somewhere in my Rio fileystem. Don't have access to my
> plan 9 box at the moment.
>
> I hope it's not terribly simple :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] pbcopy/pbpaste like functionality for snarf/paste buffers
2006-07-05 23:13 [9fans] pbcopy/pbpaste like functionality for snarf/paste buffers David Leimbach
2006-07-05 23:25 ` Tim Wiess
@ 2006-07-05 23:26 ` Steve Simon
1 sibling, 0 replies; 3+ messages in thread
From: Steve Simon @ 2006-07-05 23:26 UTC (permalink / raw)
To: 9fans
Perhaps I don't understand what you mean but
cat /dev/snarf | sed 's/hello/goodbye/' > /dev/snarf
works for me - is this enough for you?
-Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-05 23:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 23:13 [9fans] pbcopy/pbpaste like functionality for snarf/paste buffers David Leimbach
2006-07-05 23:25 ` Tim Wiess
2006-07-05 23:26 ` Steve Simon
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).