CCS Unix File content check building
I have a check to find whether a specific expression is present in a Unix file.
File contents %~ 'Expression' Where NoOfLinesToReturn = '0' AND File Name (With Path) LIKE 'filepath/filename' with Missing Data Outcome being 'Fail' and Multiple Data Operator being 'AND'
The above logic works fine and does what it should.
Whenever the file contents are not present, the check fails returning the entire file contents text as evidence.
What I am trying to do is to rebuild this check where it will not give me the entire file contents in the evidence field.
I want to see 'Expression' not found instead of the entire contents of the file which is too large.
Any ideas on how this can be achieved?