<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 6, 2015, at 18:57, Keith Larson <<a href="mailto:klarson@k12group.net" class="">klarson@k12group.net</a>> wrote:</div><div class=""><div style="font: 10pt/normal Segoe UI; font-size-adjust: none; font-stretch: normal;" class=""><div class="GroupWiseMessageBody" id="GroupWiseSection_1444175483000_klarson@k12group.net_59511A0513870000BD1BF681F57056B0_"><div class=""><br class=""></div></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><div style="font: 10pt/normal Segoe UI; font-size-adjust: none; font-stretch: normal;" class=""><div class="GroupWiseMessageBody" id="GroupWiseSection_1444175483000_klarson@k12group.net_59511A0513870000BD1BF681F57056B0_"><div class="">I would like the header row in both files if possible. </div></div></div></div></blockquote><div><br class=""></div><div>To copy the header line, start thusly:</div><div>head -1 source.csv > males.csv</div><div>head -1 source.csv > females.csv</div><div><br class=""></div><div>and every operation following that writes to the files, use the >> append operator.</div><div><br class=""></div></div></body></html>