Skip to content

Instantly share code, notes, and snippets.

@nedix
nedix / kubectl_neat_directory.sh
Last active September 7, 2023 19:09
Kubernetes neat on all files in the current directory
#!/usr/bin/env bash
find . -type f -print0 | xargs -0 -I {} sh -c 'OUTPUT=$(kubectl neat -f {}); echo "$OUTPUT" > {}'