gofind

command module
v0.0.0-...-8c820da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 10 Imported by: 0

README

GoFind

A simple utility to find files and directories written in Go.

Installation

go install github.com/benjkr/gofind@latest

Usage

gofind [ARGUMENTS] FOLDER
Arguments
-H                     human readable sizes [default: false]
--inverted, -i         inverted sort [default: false]
--depth DEPTH          max depth to go (0 = infinite) [default: 0]
--all, -a              do not ignore entries starting with .
--tree, -t             Prints Tree of all indexed files
--top TOP              N Top files [default: 0]
--dirs, -d             include directories [default: false]
--verbose, -v          verbose mode [default: false]
Examples

Find all files in the current directory:

gofind .

Find all files in the current directory, sorted by size (Smallest first):

gofind . --inverted

Tree of all files in the current directory:

gofind . --tree

Find all files in home directory, including hidden files and directories, and prints sizes in human readable format:

gofind ~ -d -a -H

# Prints the top 10 files
gofind ~ -d -a -H --top 10

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL