Why the fuck wont this work?
>ls
file1 file2 file3
You need to rename them all in a single line in Bashmv {file, File-}{1..3}
so it needs to be name
File-1 File-2 File-3
mv -T file{1..3} File-{1..3}
This doesnt work either =(
> You need to rename
rename file File- ./file{1,2,3}
Is this what you're looking for?
>>57759233
rename is not an option. Must use mv
>>57759483for i in {1,2,3}; do mv file$i File-$i; done
>>57759616
>semicolons
Those are newlines.
>>57759816
No, newlines are newlines.
>>57760329
The phrase "single line" has no meaning in a bash question because every bash script can be made in a single line with semicolons, thus when OP says "single line" he means no semicolons either.