I constantly get a bunch of files named "Unknown.png" into a folder, and often times they get renamed "unknown (1).png, unknown (2).png" etc. This is a bit of a problem as sometimes when cleaning up files and moving them somewhere else I get asked if I want to replace or rename, etc. 

So I decided to make a crontab task that renames the files to CB\_RANDOM this way I don't even have to worry about potentially overwriting two files with the same name. 

I could figure it so far, I find the files, replace the name Unknown to CB\_ and add a random number.

the problem comes to (x) at the end of the filename. I managed to figure out also how to solve it I just strip away any parenthesis and numbers.

The problem is I can't figure out how to make the rename function to follow both rules. 

```
for u in (find -name unknown*); do 
    rCode = random
    rename -v 's/unknown/CB_$rCode' $u 
    rename -v 's/[ ()0123456789]//g' $u

```

Ideally I'd like to be able to follow both rules on the same line of code, specially since once it runs the first line, then $u wont be able to find the file for the second step.