Comments (5)
for some reason, on Git Bash, the shell inteprets /1/
to mean the file 1
in the Git folder.. e.g. if you run this it will print the license from the C:\Program Files\Git
folder
cat '/LICENSE.txt'
That is not the expected behaviour.. oh well..
You can work around this issue by escaping the first backslash in the find expression (i.e. --find "\/0/"
).. i'm not sure how to fix this long-term as I can't control what Git Bash passes into renamer
..
from renamer.
I used the example in your doc. but this is also not working.
from renamer.
Works for me (see below).. which OS are you on? Windows? Which shell are you using?
$ renamer --find /0/ --replace="Hello - " --verbose --dry-run *
Dry run
✔︎ 01.jpg → Hello - 1.jpg
✔︎ 02.jpg → Hello - 2.jpg
✔︎ 03.jpg → Hello - 3.jpg
Rename complete: 3 of 3 files renamed.
from renamer.
The same test as above also worked correctly in the Windows default shell (cmd
).. However, it didn't work in Git Bash shell (cygwin), I will look into that.. which shell are you using?
from renamer.
Thanks for looking into this. I am using Git Bash on windows. escaping the first backslash solves the problem.
from renamer.
Related Issues (20)
- Dry-run doesn't log anything HOT 5
- Broken on node v12 HOT 1
- using renamer within nodejs app HOT 1
- Can't able to add exclude directory in files options Array HOT 2
- Can't able use it as global node package HOT 1
- Compatibility with yarn pnp? HOT 7
- Is there any way to only rename the files without renaming directories? HOT 1
- option to only log summary HOT 3
- Unknown option: --regex HOT 2
- Preset the naming method of some files or directories? HOT 6
- Regex /^$/ can't work HOT 5
- Make the resulting operation (e.g. rename, copy, git mv etc) user-definable HOT 1
- escaping hifen HOT 2
- Error with files starting with "." (dot) HOT 1
- --git flag? HOT 1
- FR: typescript support HOT 1
- Add --skip option (opposite of --force)
- Strange output HOT 2
- hash string HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from renamer.