Using the result of grep to sort files

前端 未结 0 368
南方客
南方客 2020-12-20 09:36

I need to sort a file based on the results of grep. Example:

cat cuts.txt | grep -P \'(?<=[+]).*(?=[+])\'
text +124+ text
text +034+ text
text +334+ text
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题