Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
directory=$(pwd)
pattern=$(awk -vORS=" " -v q="'" '{ print q $1 q }' .gitignore | sed 's/,$/\n/')
echo zip -r ignored $directory -i $pattern
zip -r ignored $directory -i $pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment