LoginSignup
0
0

More than 5 years have passed since last update.

batsでパイプを使うときの注意点

Posted at

概要

run wget http://localhost -O - | grep Hoge

Hogeが返ってきているのだが、エラーになっているのでどうしてなのか調べた。

結論

run bash -c "wget http://localhost -O - | grep Hoge"

run が1つのコマンドななので、run まで実行した結果が grep にわたるということのようだ

参考

以下を読むと色々わかる。

0
0
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
0
0