Skip to content

Instantly share code, notes, and snippets.

@ciarand
Last active August 29, 2015 14:03
Show Gist options
  • Save ciarand/b73b7833caa28ffde122 to your computer and use it in GitHub Desktop.
Save ciarand/b73b7833caa28ffde122 to your computer and use it in GitHub Desktop.
How do I even indent this correctly
# move all the front-end assets into a public dir
find . -type f \( \
-name "*.css" -o \
-name "*.html" -o \
-name "*.js" -o \
-name "robots.txt" -o \
-name "humans.txt" -o \
-name "favicon.ico" -o \
-name ".htaccess" \) |
while read file
do
mkdir -p "public/$(dirname $file)"
mv "$file" "public/$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment