https://github.com/shinokada/replaceit
This script replaces spaces of file names with underscores as the default
https://github.com/shinokada/replaceit
bash
Last synced: about 2 months ago
JSON representation
This script replaces spaces of file names with underscores as the default
- Host: GitHub
- URL: https://github.com/shinokada/replaceit
- Owner: shinokada
- Created: 2022-12-04T22:57:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T16:42:48.000Z (about 2 years ago)
- Last Synced: 2025-01-25T15:41:35.999Z (over 1 year ago)
- Topics: bash
- Language: CSS
- Homepage: https://replaceit.codewithshin.com/
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Replaceit
## Description
This script replaces spaces of file names with underscores as the default.
## Usage
```
replaceit [ -m FROM ] [ -t TO ]
-f FROM (Default: space)
-t TO (Default: _)
-d Directory name
-o One file replacement. Use quotes if the file has space(s).
-h Help
```
## Examples
The default changes from a space to _ of file names .
```
$ replaceit
```
Change from - to _.
```
$ replaceit -f - -t _
```
Quote the file name when change one file with space(s).
```
$ replaceit -o Downloads/test1.pdf
$ replaceit -o "Downloads/test 1.pdf"
```
Using a directory
```
$ replaceit -d mydir1
```
Quote the directory name when it has space(s).
```
$ replaceit -d "my dir 1"
```