mimic scp with gawk and nc