Using the rename command and Perl expression. In the terminal:
To rename all upper case file names with extension .JPG to lower case
Test first.
rename -n 'y/A-Z/a-z/' *.JPG
Execute and show the operation.
rename -v 'y/A-Z/a-z/' *.JPG
To remove all colon character out of of the file name:
rename -vn 's/[:]//g' *
To remove all non-alphanumeric characters:
rename -vn 's/[^A-Za-z0-9._]//g' *
For more inforation, type 'man rename'
Application Development. Business Solutions. Computers. Consulting. Cybersecurity. Information Technology. Software. Technology
Subscribe to:
Post Comments (Atom)
install dotnet on Mac
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-8.0.411-macos-arm64-installer Checksum (SHA512) 806889dd230d89e7ff0718a0be0...
-
These keyboard shortcuts are helpful. Some of them are not document in Visual Studio 2010 Express, for example: <Ctrl> F5 to run the ...
-
Kernel driver not installed (rc=-1908) Make sure the kernel module has been loaded successfully. where: suplibOsInit what: 3 VERR_VM_DRIVER_...
-
C:\test>git add . C:\test>git commit -m 2023-04-28 [master 35ffdfa] 2023-04-28 1 file changed, 3 insertions(+) C:\test>git push -u...
No comments:
Post a Comment