System call sed/sort works for each child