in reply to Re^3: Problem with renaming files in directory
in thread Problem with renaming files in directory

So what should I do solve this double-digit filename issue ?:)

I run this script as a root and I found that perl create those files with user id 200. I don't have user with this id. So for me is this strange. The group id for this file is the root, so everything is ok. If anyone know why I have user id 200 instead of 0 ?

  • Comment on Re^4: Problem with renaming files in directory

Replies are listed 'Best First'.
Re^5: Problem with renaming files in directory
by toolic (Bishop) on Jan 03, 2012 at 21:40 UTC
    So what should I do solve this double-digit filename issue ?:)
    You already know how to grab the digits using a regex. Now you need to create an array of filenames and sort them numerically:
    perldoc -q sort
      Thanks toolic ;)

      do you know the why perl create new files with user id 200 ? The strange thing is that user with id 200 is not exists on system.