Created
May 31, 2024 07:21
-
-
Save detj/5e0197d470f205c03522220807f273b6 to your computer and use it in GitHub Desktop.
replace-newlines.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Syntax | |
# awk '{gsub("\\n", "\n"}; print' <file> | |
# Example | |
awk '{gsub("\\n", "\n"}; print' some-file.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment