If I want to cut a list of text using a string as a delimiter, is that possible? For example I have a directory where a list of shell scripts call same perl script say
Try using this.
$grep abc.pl * | awk -F 'abc.pl' '{print $2}'
-F fs --field-separator fs Use fs for the input field separator (the value of the FS predefined variable).