Quantcast
Channel: moving files matching a pattern that catches the directory - Super User
Browsing latest articles
Browse All 2 View Live

Answer by Kamil Maciorowski for moving files matching a pattern that catches...

With mv cannot move 'foo' to a subdirectory of itself is harmless in this case, you can ignore it. I mean mv will move the rest despite the warning. However the exit status will not be 0, this may be a...

View Article



moving files matching a pattern that catches the directory

Consider: $ ls foo xyfooz.tex $ find . -maxdepth 1 -type f -name '*foo*' -exec mv {} foo \; $ ls ./foo* xyfooz.tex I'm trying to achieve the same sequence of instructions only with mv, not find: $ ls...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images