Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgripe/rename-all-files
Renames all files in a directory
https://github.com/maxgripe/rename-all-files
command-line-tool console-tool files filesystem fsharp rename rename-files
Last synced: 8 days ago
JSON representation
Renames all files in a directory
- Host: GitHub
- URL: https://github.com/maxgripe/rename-all-files
- Owner: MaxGripe
- License: unlicense
- Created: 2023-03-29T01:04:12.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T12:52:20.000Z (4 months ago)
- Last Synced: 2024-11-29T00:13:32.674Z (2 months ago)
- Topics: command-line-tool, console-tool, files, filesystem, fsharp, rename, rename-files
- Language: F#
- Homepage:
- Size: 1.72 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub repo size](https://img.shields.io/github/repo-size/MaxGripe/rename-all-files)
![GitHub License](https://img.shields.io/github/license/MaxGripe/rename-all-files)
![GitHub Created At](https://img.shields.io/github/created-at/MaxGripe/rename-all-files)
![GitHub forks](https://img.shields.io/github/forks/MaxGripe/rename-all-files)
![GitHub Repo stars](https://img.shields.io/github/stars/MaxGripe/rename-all-files)# RenameAllFiles
Renames multiple files in a directory by replacing a specified search string with a replace string in the file names.
## Usage
To use the utility, run the following command:
```
RenameAllFiles.exe searchString replaceString [CONFIRM]
```### Parameters
- `searchString`: The string you want to search for in the file names.
- `replaceString`: The string you want to replace the `searchString` with in the file names.
- `CONFIRM` (optional): If you want to execute the renaming process, add this parameter. Without it, the utility will only display the expected changes without actually renaming the files.### Example
If you want to replace the word "old" with "new" in the file names in the current directory, run the following command:
```
RenameAllFiles.exe old NEW
```This will display the expected changes in the file names. For example:
```
Old file.txt -> NEW file.txt
Another old file.older -> Another NEW file.NEWer
```If you are satisfied with the changes and want to proceed with renaming the files, add the `CONFIRM` parameter:
```
RenameAllFiles.exe old new CONFIRM
```This will rename the files as specified.
## Notes
- Search is case-insensitive, so it will match both upper and lower case occurrences of the search string.
- It processes only files in the current directory, not in subdirectories.