Nushell
Recursively git pull
Using par-each is going to run everything in parallel, making the process much faster!
ls | where type == "dir" | par-each { |it|
do -i {
print $"Processing directory: ($it.name)"
cd $it.name
git pull
cd ..
}
}
Ripgrep with parsing + filtering
rg "replicas:\\s*(\\d+)" -. -g '**/production/*.yaml' | lines | parse -r '(?<file>.*):\s*replicas:\s*(?<count>\d+)' | where ($it.count | into int) > 10