Skip to content

Instantly share code, notes, and snippets.

@marcosnakamine
Created August 4, 2017 20:14
Show Gist options
  • Save marcosnakamine/fa9d4fe6aca8a2349d02fe8031c45ee3 to your computer and use it in GitHub Desktop.
Save marcosnakamine/fa9d4fe6aca8a2349d02fe8031c45ee3 to your computer and use it in GitHub Desktop.
Shell - Remove html tag from file
cat file.txt | tr "\n" " " | sed "s/<tag>.*<\/tag>//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment