fork(1) download
  1. #!/bin/bash
  2. sed $'s/\\\,/\31/g' | awk -F, '{ printf "Name: %s\nSubjects : %s\nSports: %s\nSchool: %s\n\n", $1, $2, $3, $4 }' | tr $'\31' ','
Success #stdin #stdout 0s 23336KB
stdin
john,science\,social,football,florence_school
james,painting,tennis\,ping_pong\,chess,highmount_school
stdout
Name: john
Subjects : science,social
Sports: football
School: florence_school

Name: james
Subjects : painting
Sports: tennis,ping_pong,chess
School: highmount_school