Skip to content

Instantly share code, notes, and snippets.

@imran-parray
Created May 10, 2020 12:59
Show Gist options
  • Save imran-parray/bb8b00c9ebef024f06ccdc10a98bae15 to your computer and use it in GitHub Desktop.
Save imran-parray/bb8b00c9ebef024f06ccdc10a98bae15 to your computer and use it in GitHub Desktop.
giturls()
{
while read line; do echo $line | cut -d/ -f1-3;echo $line | cut -d/ -f1-4;echo $line | cut -d/ -f1-5;echo $line | cut -d/ -f1-6;echo $line | cut -d/ -f1-7;echo $line | cut -d/ -f1-8;echo $line | cut -d/ -f1-9;echo $line | cut -d/ -f1-10;echo $line | cut -d/ -f1-11;echo $line | cut -d/ -f1-12;echo $line | cut -d/ -f1-13;echo $line | cut -d/ -f1-14;echo $line | cut -d/ -f1-15;echo $line | cut -d/ -f1-16;echo $line | cut -d/ -f1-17;echo $line | cut -d/ -f1-18;echo $line | cut -d/ -f1-19;echo $line | cut -d/ -f1-20;echo $line | cut -d/ -f1-21;done | grep -v '?' | grep -v "\...$" | grep -v "\....$" | grep -v "\....$" | sort -u
}
@mohnqwerty
Copy link

Hello imran,
what is this script about ?
is it about recon or something else
i didnt get anything else except cut -d and echo $line its kind of iteration i think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment