Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    It's not necessary to use ls: for i in ./dir1/* Commented Jan 7, 2010 at 12:17
  • 1
    @Dennis, funky shortcut. +1. I'm so used to doing command substitution though it's automatic and I just use which ever command I need, e.g. sometimes I'm using find. Using ls also lets me play with the the dir listing more, e.g. reverse time based instead of default sequence. Commented Jan 7, 2010 at 12:49