Git Product home page Git Product logo

Comments (7)

rhash avatar rhash commented on May 27, 2024

You should construct file list with find command and pass it to rhash:

find Top -type f -not -regex '.*/donotinclude/.*' > /tmp/file-list.txt && rhash -M --file-list /tmp/file-list.txt

from rhash.

rhash avatar rhash commented on May 27, 2024

Recently I fixed a bug with reading a file-list from standard input.

After the commit b8514dd (fixed again by d10d941) you can use a shorter command:

find Top -type f -not -regex '.*/donotinclude/.*' | rhash -M --file-list -

from rhash.

splaisan avatar splaisan commented on May 27, 2024

Thanks you very much for this nice feature and example, now I can use rhash for my data checkup
cheers

from rhash.

i2324561w2 avatar i2324561w2 commented on May 27, 2024

Sorry, I don't know if I should have opened another issue or not.
I don't think it exists a similar command as "find" in Windows, also this way I can't use a relative path, so can you please think again about it?

from rhash.

satori80 avatar satori80 commented on May 27, 2024

@2324561w2, I've been thinking the same thing for a while now.

from rhash.

rhash avatar rhash commented on May 27, 2024

With RHash version 1.4.1 or higher, use Windows DIR and FINDSTR commands:

dir /S /B "C:\THE_FOLDER_TO_SEARCH" | findstr /V /I /C:"\\SOME_SUBFOLDER\\" | rhash -M --file-list -

The \\ sequence in the findstr /C: parameter represents character \. Actually any special character of \.*^$[] must be escaped by \. Check the help findstr output.

from rhash.

satori80 avatar satori80 commented on May 27, 2024

The --file-list - option doesn't seem to allow for "special" characters:

dir /s /b "“Test file”. whatever.txt" | rhash -H --file-list -
RHash: D:\test\"Test file". whatever.txt: No such file or directory

So, is this a bug in --file-list -, or is it the shell changing the quote style?

from rhash.

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.