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.
我想在命令行上指定一个不连续数字的列表,如下所示:
for i in (50 89 132 17 55); do echo $i done
如何指定列表以便$i依次获取每个值?
$i
跳过括号。
for i in 50 89 132 17 55; do echo $i done