<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 &lt;<a href="mailto:klarson@k12group.net" class="">klarson@k12group.net</a>&gt; 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.&nbsp; </div></div></div></div></blockquote><div><br class=""></div><div>To copy the header line, start thusly:</div><div>head -1 source.csv &gt; males.csv</div><div>head -1 source.csv &gt; females.csv</div><div><br class=""></div><div>and every operation following that writes to the files, use the &gt;&gt; append operator.</div><div><br class=""></div></div></body></html>