change(1f) - [FILE EDIT] replace old fixed string with new fixed string in names of files (LICENSE:PD)
Synopsis
Description
Options
Example
Author
License
change c/old/new/ FILENAMES [ -dryrun][ -cmd COMMAND]| --version| --help
Given a change directive and a list of filenames replace all occurrences of the original string with the new string.
c/old/new/ change occurrences of old string to new string in filenames. The first character after the c is the delimiter for the strings. Spaces are not allowed in the expression. FILENAMES names of files to rename -dryrun write the commands to stdout instead of executing them -verbose echo the commands to be executed -cmd COMMAND change command from "mv" to specified command name --help display this help and exit --version output version information and exit
Sample commands:
# change all files with .f90 in their name to *.F90 change c/.f90/.F90/ *.f90 # copy all files with .f90 in their name to *.F90 change c@.f90@.F90@ *.f90 -cmd cp
John S. Urban
Public Domain
change (1) | March 11, 2021 |