Perhaps I'm a little behind on this, but I just discovered two useful command-line applications for the Mac:
The summary is that these allow you to send standard input to the "pasteboard" (a.k.a. the clipboard where copies using Cmd-C are stored) and received text from the pasteboard. For example, you can copy the text of a file to the pasteboard and paste it (Cmd-V) into a graphical editor.
$ cat file.txt | pbcopy
In my opinion, anything that makes it easier to transfer information between command-line programs and GUI programs can only be a good thing.
No comments:
Post a Comment