Skip to content

Instantly share code, notes, and snippets.

@DevGW
Last active March 3, 2023 15:19
Show Gist options
  • Save DevGW/6c4e51a0453f87e223ea1cb401c09c9a to your computer and use it in GitHub Desktop.
Save DevGW/6c4e51a0453f87e223ea1cb401c09c9a to your computer and use it in GitHub Desktop.
shell :: prepend first line of one file to another #hha_ank
head -n 1 csv_file_with_header.csv | sed -i '1r/dev/stdin' csv_file_to_add_header_to.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment