Use unix grep command in AppleScript
I am trying to use grep to select records by search item but need to do this by a selected column.
The code I have works but have problems if the search item appears in another column.
Is it possible to specify the column to be searched.
Any guidance would be gratefully received.
set searchItem to 2018 as integer -- extract year
set foundRecs to do shell script "grep " & searchItem & space & filePath -- only read matching records
iMac (Retina 5K, 27-inch, 2017), macOS High Sierra (10.13.5)