Help for this page
zabcz zzabczz zzzabczzz
perl -ne 'print if s/.*?(?=abc)//...0' <infile
abcz zzabczz zzzabczzz
zabcz zzabczz abczzz