Skip to content

Instantly share code, notes, and snippets.

@reelsense
Last active January 19, 2019 21:53
Show Gist options
  • Save reelsense/2ef735ae8c7fa893d9a52cbeff89a0c8 to your computer and use it in GitHub Desktop.
Save reelsense/2ef735ae8c7fa893d9a52cbeff89a0c8 to your computer and use it in GitHub Desktop.
Data Processing

Data Processing

Run command against each line in a file

while read in; do COMMAND "$in"; done < FILE

Run command in parallel once per line in a file

parallel --no-run-if-empty -a FILE COMMAND

Dependencies and Documentation

macOS: brew install parallel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment