Skip to content

Instantly share code, notes, and snippets.

@hgwr
Created August 4, 2019 07:51
Show Gist options
  • Save hgwr/41efb4feceb4cc1b0fb1c075e3c0a43a to your computer and use it in GitHub Desktop.
Save hgwr/41efb4feceb4cc1b0fb1c075e3c0a43a to your computer and use it in GitHub Desktop.
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
trap 'echo "Ctrl-C captured and exit."; exit 1' INT
find . -type d \( -not -path '.' -not -path '*outdir' \) -print0 | \
while read -d $'\0' line; do
(cd "$line"; pwd; ~/bin/lightweighter.sh)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment