I just discovered a couple useful command-line tools on OSX and thought I’d share. pbcopy will copy stdin to the clipboard and pbpaste will send the clipboard to stdout.
$ cat somefile.txt | pbcopy #copy a file to the clipboard $ grep foo < pbpaste #search the clipboard for foo
Handy.
Related posts:
1:00 am
Nice article, i love it, thanks for sharing