I don't know who needs to hear this but in R on Mac or Linux: > readLines(pipe('echo "1,2,3" | awk -F "," \'{print $2}\'')) [1] "2" #RStats
2
1
1
1