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.

3
  • 1
    What exactly is wrong with mycommand A*.xlsx, mv A*.xlsx tmp/, etc.? Commented Dec 15, 2020 at 18:57
  • I want to put the mycommand, mv and a few other commands inside a loop (there are a lot of file patterns and a few lines of code for each one of them, all of them the same lines) Commented Dec 15, 2020 at 19:00
  • 1
    Why do you want a loop? (Do you really want to call mycommand multiple times, or is that you don't know you can do mycommand A*.xlsx B*.xlsx C*.xlsx, etc.?) Commented Dec 15, 2020 at 19:02