Directories
Get rootdirs from a list of links one-liner:
cat links.txt | grep -oP '^https?://(?:[^/]*/){2}' | sort -u | tee root-dirs.txt
Search
Oct 08, 20241 min read
Get rootdirs from a list of links one-liner:
cat links.txt | grep -oP '^https?://(?:[^/]*/){2}' | sort -u | tee root-dirs.txt