strictΒΆ

strict() command removes not explicitly selected fields from the output stream.

| strict()

The command is useful in scripts eliminating sensitive fields.

Example.

1
2
3
dual(5)             // generate 5 rows of data with various fields
| select(i, ip, s)  // select subset of those fields
| select(d, *);     // field 'd' from initial stream is still available

When we apply strict() between to consequtive select() then we get error:

1
2
3
4
dual(5)             // generate 5 rows of data with various fields
| select(i, ip, s)  // select subset of those fields
| strict()          // allow further select only fields 'i', 'ip' and 's'
| select(d, *);     // field 'd' from initial stream is not available