Skip to content

Instantly share code, notes, and snippets.

@knappologi
Created March 6, 2020 07:37
Show Gist options
  • Select an option

  • Save knappologi/e599121c45d6ec87932a2c7a7f026642 to your computer and use it in GitHub Desktop.

Select an option

Save knappologi/e599121c45d6ec87932a2c7a7f026642 to your computer and use it in GitHub Desktop.
sed command to remove every line with åäö from a textfile, first param is the og txt, second is outputfile
#!/bin/bash
sed '/å/d ; /ä/d ; /ö/d' $1 > $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment