Giter Club home page Giter Club logo

Comments (10)

swapng avatar swapng commented on August 10, 2024

Update:
gufi_find with '-' is working,
used gufi_find -size=-10M

from gufi.

swapng avatar swapng commented on August 10, 2024

Is there way to pass the size without giving "=" sign

Like, gufi_find -size -10M

from gufi.

calccrypto avatar calccrypto commented on August 10, 2024

This behavior comes from the python argparse library. The = sign is needed to make sure argparse does not treat arguments starting with - as flags. If there is a clean way to get around it, please let us know.

from gufi.

swapng avatar swapng commented on August 10, 2024

Yes after reading the code I came to know that's behaviour from python argparser. Thank you for confirmation.
Sure I'll try to do some work around, If it's done then let you guys know.

Also I tried all options from gufi_find command, but few options like -iname, -inmemory_name, -lname, -newer, -samefile are not working for me (might be missing something).

Could you please provide me one example for each option.

Thank you once again!

from gufi.

calccrypto avatar calccrypto commented on August 10, 2024

-iname "ABC" should find all names matching [Aa][Bb][Cc]. c97c22d
-lname "ABC" should find all links matching ABC. 6f019f6 9447905
-newer <reference> where reference is an actual path that can be stat-ed. a1ed06b
-samefile <reference> where reference is an actual path that can be stat-ed. 237244d

--in-memory-name sets the name of the intermediate table used when aggregating, and generally should not be used

from gufi.

swapng avatar swapng commented on August 10, 2024

Thanks for information, i tried above options it worked.

One more thing, while running gufi_find with -name option it works for filename with no special characters.
For example,
gufi_find -name "CREDITS+10.txt"

It doesn't show file path

from gufi.

calccrypto avatar calccrypto commented on August 10, 2024

Please pull the latest GUFI. a8d9328 changed -name to use GLOB instead of REGEXP.

from gufi.

swapng avatar swapng commented on August 10, 2024

Thanks it worked,

with gufi_find | grep <filename> , some how it didn't show any output.. because at the end of every file path null character is getting added that's why grep is failing.. verified it with gufi_find > find.output

from gufi.

calccrypto avatar calccrypto commented on August 10, 2024

Can you please copy a few lines of xxd find.output here? I am not seeing any null characters in the output of gufi_find.

$ gufi_dir2index test search

# update /etc/GUFI/config

$ gufi_find | grep "outfiles.cpp.o"
search/test/unit/googletest/CMakeFiles/unit_tests.dir/outfiles.cpp.o

$ gufi_find | grep "outfiles.cpp.o" | xxd
0000000: 7365 6172 6368 2f74 6573 742f 756e 6974  search/test/unit
0000010: 2f67 6f6f 676c 6574 6573 742f 434d 616b  /googletest/CMak
0000020: 6546 696c 6573 2f75 6e69 745f 7465 7374  eFiles/unit_test
0000030: 732e 6469 722f 6f75 7466 696c 6573 2e63  s.dir/outfiles.c
0000040: 7070 2e6f 200a                           pp.o .

$ gufi_find | xxd | grep "(00\ |\ 00)" # no matches

from gufi.

swapng avatar swapng commented on August 10, 2024

Thanks for the confirmation!, I'll take a look in code. Might be I messed up something in the code.

from gufi.

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.