Last active
February 19, 2026 16:08
-
-
Save cheshire137/fb115faa3daa6ae79a154243b5d66efe to your computer and use it in GitHub Desktop.
Handy commands I forget and want to copy-paste periodically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # hot-reload a Go server, ty @zerowidth | |
| # see https://github.com/eradman/entr | |
| find . -name '*.go' | entr -r -c go run . server | |
| # look for files that match two patterns | |
| grep -rl --include \*.rb --exclude-dir=vendor --exclude-dir=test "pattern the first" . | xargs grep "pattern the second" | |
| # generate a Markdown todo list of file paths | |
| some_command_outputting_a_list_of_file_paths | xargs grep -l "some pattern within some of the files" | awk '$0="- [ ] "$0' | |
| # output file paths owned by a service that contain some text | |
| bin/serviceowners-ls-files some_service | grep some/directory | xargs grep -l "some content in the file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment