$ 0 0 以下だと a.txt の内容がコンソールには表示されない. $ cat a.txt | xclip そこで次のように「tee /dev/stderr」(標準エラー出力) を挟む. $ cat a.txt | tee /dev/stderr | xclip 以上