i have ps file with record length 42.
1-9 is employee id
10-42 is employee name..
in this file i need to search for a string 'JACK'. If this is present in any position from 10 - 42 this record has to be reported or else if 'JACK' is the only string found from 10 - 42 position that record has to be skipped.
for example.
Code: Select all
emp - id emp-name
xxxxxxxxxJACK HENDRY
aaaaaaaaaHARRIS JACK
bbbbbbbbb JACK
Can this be done in sort??
if so can anyone tell the possible ways..