Skip to content

Instantly share code, notes, and snippets.

@felixxm
Created May 5, 2020 18:57
Show Gist options
  • Save felixxm/210e2a241c5ac17f5d2e569c31e1354c to your computer and use it in GitHub Desktop.
Save felixxm/210e2a241c5ac17f5d2e569c31e1354c to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in `find -name urls.py`
do
sed -e 's/ url(/ re_path(/g' $file > $file.bck
mv $file.bck $file
echo $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment