by acg · 17y ago · 0 comments
For example:
curl http://news.bbc.co.uk/ | pbcopy # copies a web-page to clipboard
Depending on what you are doing it can be very useful: pbpaste | sort | pbcopy # sort the contents of the clipboard.
Another useful feature of OS X is open, which uses the finder to open a file: open file.pdf
open music.mp3 # xclip:
curl http://example.org | xclip
And instead of "open", you can use: xdg-open file.pdf
xdg-open music.mpe
(or even gnome-open if you're on gnome) will open up the file with their default handler open -a 'TextEdit' foobar.txt
open -a 'TextMate' foobar.txt open -na safari open /Applications/FooBar.app alias shop="open -a Adobe\ Photoshop\ CS3" open .
open /Applications