Giter VIP home page Giter VIP logo

Comments (5)

75lb avatar 75lb commented on July 20, 2024 1

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.

vijayhardaha avatar vijayhardaha commented on July 20, 2024

image

I used the example in your doc. but this is also not working.

from renamer.

75lb avatar 75lb commented on July 20, 2024

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.

75lb avatar 75lb commented on July 20, 2024

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.

vijayhardaha avatar vijayhardaha commented on July 20, 2024

Thanks for looking into this. I am using Git Bash on windows. escaping the first backslash solves the problem.

from renamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.