scnzzh@ZUBT:~$ echo ‘app[01:100].com‘ | sed ‘s/.*\[/\[/‘ [01:100].com
sed - search and replace pattern
原文:https://www.cnblogs.com/zhangzhihui/p/14029335.html