Created
September 13, 2016 22:07
-
-
Save dnunez24/01775aec6713f46e7183792f3f4606e7 to your computer and use it in GitHub Desktop.
Prepend Header Row to Another File in Bash
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
head -n1 file-with-header.txt | cat - file-without-header.txt > tmp.txt && mv tmp.txt file-without-header.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment