我只是要提取匹配到的字符串,爲毛搜出一大推sed操做,要顯得各位的牛B技術仍是不知道egrep這個功能?一條命令的事。app
找出本機全部yarn做業。ide
$>egrep -o "application_[0-9]*_[0-9]*" /tmp/t.txt | sort -n | uniq字符串
application_1493848732037_1593432it
application_1493848732037_1649494io
application_1493848732037_1670246class
application_1493848732037_1670447sed
application_1493848732037_1671083grep
application_1493848732037_1671121技術