I have several hundred files here which accidently got renamed after the
following pattern:
YYYYMMDD_YYYYMMDD-something
where the first date does not match the second date. How can I get the
file which follow this pattern?
Thanks from Germany,
Uwe
ls | % {if ($_.name -match "\d{8}_\d{8}-.+") {$_}}
You can change that last {$_} to {$_.name} if you just want this to
print out the file names.
Thanks very much!
Uwe