select_removeΒΆ

select_remove() command removes specified fields from the output stream.

| select_remove(fieldname, ...)

The command is useful in scripts eliminating sensitive fields.

Example.

1
2
dual(3)
| select(t, ip, s, f)
t ip s f
2020-09-23 15:16:42.540 +0300 0.0.0.0 0ho0 0.0
2020-09-23 15:16:42.541 +0300 0.0.0.1 1ho1 1.0
2020-09-23 15:16:42.542 +0300 0.0.0.2 2ho2 2.0
1
2
3
dual(3)
| select(t, ip, s, f)
| select_remove(s, ip)
t f
2020-09-23 15:17:39.497 +0300 0.0
2020-09-23 15:17:39.498 +0300 1.0
2020-09-23 15:17:39.499 +0300 2.0