0
如何在linux中使用for
循環獲取文件的第二列?
ATTACHMENT vol-f66 i-26048111 /dev/sda1 attached 2013-11-20T06:42:49+0000 true
ATTACHMENT vol-3db i-e1c443d6 /dev/sda1 attached 2013-11-21T12:38:09+0000 true
如何在Linux中使用`for`循環獲取文件的第二列?
我想實現像這個 -
for /f "tokens=2" %%s in (%EC2_HOME%\Volumes.txt) do call ec2-create-snapshot %%s
如何只能取第二列?你能爲它編寫代碼嗎? – user3073109
我想這樣做' for/f「tokens = 2」%% s in(%EC2_HOME%\ Volumes.txt)do call ec2-create-snapshot %% s' – user3073109
編輯並將其放入您的問題中。在這裏沒有任何意義。 – erbdex