如何對模式后的內(nèi)容進行grep?例如,給定一個文件:potato: 1234
apple: 5678
potato: 5432
grape: 4567
banana: 5432
sushi: 56789我想為所有以potato:但只需列出下面的數(shù)字potato:..所以在上面的例子中,輸出是:1234
5432我怎么能這么做?
如何對模式后的內(nèi)容進行grep?
慕工程0101907
2019-07-17 15:51:16