Skip to Content

Shell Recipes

Paste output from two subshells:

paste <(head -1 data.csv | tr ',' '\n' ) <(cat data.csv | grep pattern | tr ',' '\n') | bat 

Referecens