Skip to content

Instantly share code, notes, and snippets.

@cdolek
Created June 2, 2017 18:26
Show Gist options
  • Save cdolek/c932ee612bc1967b42ea51ce10f42b83 to your computer and use it in GitHub Desktop.
Save cdolek/c932ee612bc1967b42ea51ce10f42b83 to your computer and use it in GitHub Desktop.
Add string to every line of a CSV file
while IFS= read -r line; do echo "$line,string_I_would_like_to_add,some_other_string"; done < file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment