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.

4
  • 2
    this was the simplest solution that worked for me Commented Aug 22, 2019 at 10:08
  • But that fails if any of the files that match pattern* is of type directory, or the names contain whitespace or single quote, double quote, or backslash characters. You'll notice that I gave a correct answer using mv -t already in 2013. Commented Aug 3, 2020 at 12:15
  • mywiki.wooledge.org/ParsingLs Commented Apr 24, 2021 at 15:49
  • mv: illegal option -- t Commented Sep 23, 2023 at 8:09