LoginSignup
0
0

More than 5 years have passed since last update.

ZabbixのUserParameterでうまくawkが効かない時cutを使ってみる

Posted at

概要

ZabbixのUserParameterのなかで、awkが使えなかった

まとめ

cutを使ってみる。

経緯

区切り文字が空白(0x20)であることは hexdump -C で確認した。

| awk '{print $$3;}'

これがうまくうごくとおもっていたのだけど、うまくいかなった。
区切り文字-F ' 'も変えてみたつもりなのだが、うまくいかなかった。

そこで以下のようにしてみた。

| cut -d\ -f3

0
0
3

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