{"repo":"tavianator/bfs","free":true,"listed":false,"github":"https://github.com/tavianator/bfs","clone":"git clone https://github.com/tavianator/bfs.git","description":"A breadth-first version of the UNIX find command","language":"C","stars":1257,"topics":["find","command-line","filesystem","directory-tree","breadth-first-search","linux","macos","bsd","unix"],"license":"0BSD","category":"cli-tools","readme_excerpt":"bfs [Features] • [Installation] • [Usage] • [Building] • [Contributing] • [Changelog] [Features]: #features [Installation]: #installation [Usage]: /docs/USAGE.md [Building]: /docs/BUILDING.md [Contributing]: /docs/CONTRIBUTING.md [Changelog]: /docs/CHANGELOG.md bfs is a variant of the UNIX find command that operates breadth-first rather than depth-first . It is otherwise compatible with many versions of find , including [POSIX] • [GNU] • [FreeBSD] • [OpenBSD] • [NetBSD] • [macOS] [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/find.html [GNU]: https://www.gnu.org/software/findutils/ [FreeBSD]: https://www.freebsd.org/cgi/man.cgi?find(1) [OpenBSD]: https://man.openbsd.org/find.1 [NetBSD]: https://man.netbsd.org/find.1 [macOS]: https://ss64.com/osx/find.html If you're not familiar with find , the GNU find manual provides a good introduction. Features -------- bfs operates breadth-first, which typically finds the file(s) you're looking for faster. Imagine the following directory tree: haystack ├── deep │ └── 1 │ └── 2 │ └── 3 │ └── 4 │ └── ... └── shallow └── needle find will explore the entire deep directory tree before it ever gets to the shallow one that contains what you're looking for. On the other hand, bfs lists files from shallowest to deepest, so you never have to wait for it to explore an entire unrelated subtree. bfs find bfs tries to be easier to use than find , while remaining compatible. For example, bfs is less picky about where you put its arg","default_branch":null,"files":null,"tree":[],"storefront":"/r/tavianator","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tavianator/bfs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}