rename file from terminal whenfile has xattr
I have files with xattr like this:
$ ll
total 10248
-rw-r--r--@ 1 udina staff 684414 Nov 2 11:58 SA_artista ceret-1.jpg
-rw-r--r--@ 1 udina staff 620273 Nov 2 11:59 SA_artista ceret-2.jpg
-rw-r--r--@ 1 udina staff 599247 Nov 2 12:02 SA_artista ceret-3.jpg
when I try to rename them from a bash script, it gives me error:
rename SA_artista ceret-6.jpg SA_artista-ceret-6.jpg
rename: SA_artista-ceret-6.jpg: not accessible: No such file or directory
How should I do it?
Thanks
MacBook Pro 16″, macOS 15.6