0

I have to copy only files from a folder that don't have following string in its filename: NNNNxNNNN (a 3 or 4 digit number followed by the character x followed by a 3 or 4 digit number again -> it's the resolution of an image in the filename)

I'm trying for about an hour with the "find" command but it never does what it should do.

1
  • 1
    Yeah, damn command it doesn't work!!! AAAAAA!!! Oh, wait, the problem might be between the computer and the chair. :)
    – user127350
    Jul 29, 2014 at 19:05

1 Answer 1

0
find -E dir_x -type f -not -regex ".*[0-9]{3,4}x[0-9]{3,4}.*" -exec cp {} dir_y \;
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .