@grail the problem is
Code:
find . -type f -print | xargs p4 have > outfile
is not sending
error output - file(s) not on client. to outfile but on terminal and that is causing us the grief.
If that would have sent to outfile then extracting file name from outfile and processing it would have been easy task.
Now if I type on command prompt, exactly the way you have given.
Code:
find . -type f -print | xargs p4 have |& awk -F"[ /]" '/not on/{print $2}'
gives me syntax error
Code:
find . -type f -print | xargs p4 have & awk -F"[ /]" '/not on/{print $2}'
keep on hanging until I do Ctl C to come out from loop.
Code:
find . -type f -print | xargs p4 have & awk -F"[ /]" '/not on/{print $2}'
Gives the desired output of error files but only on screen.
If I try to redirect output to a log file there is nothing in logfile...