Does anyone know a regular expression that will rename multiple files that have different extensions to have the same extension. For example, you could use this code when several text files exist in a directory but have slightly different extensions such as .txt,. TXT, or text. This expression should show how to rename them to all have .txt extensions.
I understand i will nedd [] the character class so it contains a hypen,...
User Profile
Collapse
-
Changing the extensions of multiple files using Perl Regex?
-
Analysing text files with Perl
Analysing text files to obtain statistics on their content
You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows:
1) When run, the program should check if an argument has been provided. If not, the program should prompt for, and accept input of, a filename from the keyboard.
... -
Analysing text files with Perl
Analysing text files to obtain statistics on their content
You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows:
1) When run, the program should check if an argument has been provided. If not, the program should prompt for, and accept input of, a filename from the keyboard.
2) The filename, either passed as an argument...
No activity results to display
Show More
Leave a comment: