Science Notes
A weblog sharing great ideas, theory, and implementations in data, sciences, and beyond.
Thursday, September 1, 2016
Cut a particular column and concatenate using shell commands
Eg, to extract the first column (tab delimited) starting from the 2nd line, and concatenate output using comma:
tail -n +2 file | cut -f1 | paste -sd,
‹
›
Home
View web version