fork download
  1. #!/bin/bash
  2. s='"IGNORE","Why","IGNORE","Where","FirstName LastName Country"'
  3. awk -F'","|^"|"$' '{print tolower($3),"~",tolower($5),"~",toupper(substr($6,1,1)) tolower(substr($6,2))}' <<< "$s"
  4.  
Success #stdin #stdout 0s 23336KB
stdin
Standard input is empty
stdout
why ~ where ~ Firstname lastname country