LoginSignup
2
2

More than 5 years have passed since last update.

Cygwinでコマンドの出力結果をクリップボードにコピーする

Posted at

実行環境

Windows7 64bit版
Cygwin 64bit版

方法

コマンドの出力結果を clip へリダイレクトするだけ

echo "hello" | clip

上記コマンド実行後は、クリップボードに「hello」という文字列がコピーされる。

clip とは

受け取った入力をクリップボードにコピーできるコマンド。
Windows標準のコマンドなので、コマンドラインでも使用可能。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2