Skip to content

Instantly share code, notes, and snippets.

@redpop
Created November 30, 2024 19:42
Show Gist options
  • Save redpop/bb893bce162fe2e1db2489f1196302f9 to your computer and use it in GitHub Desktop.
Save redpop/bb893bce162fe2e1db2489f1196302f9 to your computer and use it in GitHub Desktop.
Recursively find all files in the specified directory and its subdirectories, then run ShellCheck on each file individually. This command uses null-byte separation to handle filenames with spaces or special characters correctly.
find . -type f -print0 | xargs -0 -n1 shellcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment