文件名称:使用for循环打印1到N
文件大小:38KB
文件格式:ZIP
更新时间:2024-04-24 09:10:57
shell Ubuntu Linux
这对我有用:#!bin / shfor c in`seq 1 5`doecho“ $ c” done但是,正如Manfred指出的那样,正确的语法取决于您使用的shell。
【文件预览】:
Printing-1-to-N-with-for-loop.pdf
文件名称:使用for循环打印1到N
文件大小:38KB
文件格式:ZIP
更新时间:2024-04-24 09:10:57
shell Ubuntu Linux
这对我有用:#!bin / shfor c in`seq 1 5`doecho“ $ c” done但是,正如Manfred指出的那样,正确的语法取决于您使用的shell。