Sam*_*mer 5 bash brace-expansion
我喜欢大括号扩展(例如rm file.{0..5})。我发现它比扩展版本更容易阅读。有没有一种快速简便的方法来做相反的事情?
rm file.{0..5}
例如,给定输入www.example.com www1.example.com www2.example.com,输出将是www{,1,2}.example.com。
www.example.com www1.example.com www2.example.com
www{,1,2}.example.com
Adr*_*rth 2
简短的答案是否定的,这是不可能的,但它似乎与最长公共子串问题有关,如果您有兴趣自己编码,您可以将其作为起点。
归档时间:
12 年,6 月 前
查看次数:
202 次
最近记录: