Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道
echo {1..10}
做
1 2 3 4 5 6 7 8 9 10
但我不想要 6 和 7。是否可以排除它?
也许您可以使用以下内容:
echo {1..5} {8..10}
它可以用
但我发现了另一种解决方案:
echo {{1..5},{8..10}}
作为一种解决方法,echo {1..5} {8..10}可能就足够了。