Use the shell command in combination with grepawksedsort # when processing a ticket, select the desired ticket first. here, select the AAA ticket, then sort by corresponding fields # The-k parameter is generally used, and + 0.4 is generally used when the file name is relatively regular & lt; 48rbi [rbi]... use the shell command in combination with grep awk sed sort # when processing a ticket, select the desired ticket first. here, select the AAA ticket, then sort by corresponding fields # The-k parameter is generally used, and + 0.4 is generally used when the file name is relatively regular <48 rbi [rbi]: /home/ChinaTelCdrTransScript/test> ls-l | grep ^-| awk '{print $ NF}' | sed-n'/^ AAA/p' | sort-t _ + 0.4AAA _ signature <49 rbi [rbi]: /home/ChinaTelCdrTransScript/test> ls-l | grep ^-| awk '{print $ NF}' | sed-n'/^ AAA/p' | sort-t _- k Branch <50 rbi [rbi]: /home/ChinaTelCdrTransScript/test> ls-l | grep ^-| awk '{print $ NF}' | sed-n'/^ AAA/p' | sort-t _- k 5AAA_01_20100318_0212_7209.TXTAAA_01_20100319_0211_7209.TXT
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.