Skip to content

Instantly share code, notes, and snippets.

@toyama0919
Created October 26, 2013 14:20
Show Gist options
  • Select an option

  • Save toyama0919/7169970 to your computer and use it in GitHub Desktop.

Select an option

Save toyama0919/7169970 to your computer and use it in GitHub Desktop.
macのrubyでclipboardの内容を取得する ref: http://qiita.com/toyama0919/items/a8101f9f46f44758f01b
brew install nkf
text = `pbpaste | /usr/local/bin/nkf -w`
puts text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment