Skip to content

Instantly share code, notes, and snippets.

@apeckham
Created August 14, 2023 17:11
Show Gist options
  • Save apeckham/5fe4b429fc57790a8581fcfdbc855d37 to your computer and use it in GitHub Desktop.
Save apeckham/5fe4b429fc57790a8581fcfdbc855d37 to your computer and use it in GitHub Desktop.
remove comments, spaces and duplicates from an ads.txt file
sed -e 's/ *#.*$//' -e 's/[ ,]*$//' -e 's/ *, */,/g' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment