Skip to content

Instantly share code, notes, and snippets.

@devanshbatham
Created August 12, 2020 16:55
Show Gist options
  • Save devanshbatham/e2c82c74e907a13724cf3f953315f650 to your computer and use it in GitHub Desktop.
Save devanshbatham/e2c82c74e907a13724cf3f953315f650 to your computer and use it in GitHub Desktop.
gau $1 | unfurl -u paths | tee $1.txt;
sed 's#/#\n#g' $1.txt | sort -u | tee temp.txt;
cat temp.txt | grep -Ev '\.' | tee paths-$1.txt;
cat temp.txt | grep -v '(png|jpg|css|gif|woff|pdf)' | tee relevant-files.txt;
cat relevant-files.txt | grep '\.' | tee files-$1.txt;
rm temp.txt;
rm relevant-files.txt;
rm $1.txt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment