Is it possible to use a string as a delimiter in unix cut command?

后端 未结 5 541
长发绾君心
长发绾君心 2021-02-07 04:18

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

5条回答
  •  感情败类
    2021-02-07 04:44

    Or you can try eg Ruby:

    grep abc.pl * | ruby -ne 'p $_.chomp.split("abc.pl").last'
    

提交回复
热议问题