Skip to main content
12 events
when toggle format what by license comment
Apr 17, 2020 at 8:40 comment added user4556274 @lavya, using for i do list ; done does work. You could ask a separate question as to how it works if it's not clear after reading the bash manual.
Apr 17, 2020 at 6:33 comment added Lavya @user4556274 according to the syntax "for i do; done" should work as well. why doesn't it?
Feb 10, 2020 at 15:50 comment added dopexxx do filename_${i} then
Nov 7, 2018 at 21:41 comment added pretzlstyle What if $i needs to be part of a file name? Does it need double quotes?
Jul 18, 2018 at 16:38 history edited user4556274 CC BY-SA 4.0
added 92 characters in body
S Jul 17, 2018 at 17:48 history edited G-Man Says 'Reinstate Monica' CC BY-SA 4.0
Tweaked punctuation.
Jul 17, 2018 at 17:08 review Suggested edits
S Jul 17, 2018 at 17:48
Mar 17, 2018 at 21:31 comment added user4556274 @jake, this also says you must remove the semicolon after do. In addition, this answer explains why you must remove the semicolon after `do'.
Mar 17, 2018 at 19:45 comment added Jake The final script is wrong, as @dr01 pointed out, you need to remove the semicolon after do.
Jul 13, 2017 at 19:23 vote accept user30167
Jul 12, 2017 at 14:53 history edited user4556274 CC BY-SA 3.0
added 29 characters in body
Jul 12, 2017 at 14:22 history answered user4556274 CC BY-SA 3.0