Skip to content

Instantly share code, notes, and snippets.

@UnknownPlatypus
Last active April 12, 2022 09:08
Show Gist options
  • Save UnknownPlatypus/bf3b58de6f5446d99595b5fc2061ca70 to your computer and use it in GitHub Desktop.
Save UnknownPlatypus/bf3b58de6f5446d99595b5fc2061ca70 to your computer and use it in GitHub Desktop.
egrep 'model_name=".*",' <file> | grep -o '".*"' |sort -u > m.txt
sed -i '$!s/$/,/' m.txt
pm makemigrations --empty extended_tag --name data_migration_image_fields
# Grep thing starting with
grep -oP 'name: "\K\w+' cron.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment