Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パラメータを取り、それを保存するスクリプトをbashで書いています。
threshold = $1
次に、次のようなサンプルデータがあります。
5 blargh 6 tree 2 dog 1 fox 9 fridge
パラメータ(しきい値)として入力した数よりも大きい数の行のみを印刷したいと考えています。
私は現在使用しています:
awk '{print $1 > $threshold}' ./file
しかし、何も出力されません。助けていただければ幸いです。