On Mon Dec 30 05:12:16 EST 2013, dexen.devries@gmail.com wrote: > hi list, > > > both behavior and code indicate that split(1)'s `-e' (split by regular > expression) doesn't play along with either `-n' (line count) or `-f' (output > file prefix). the former is somewhat understandable, but the later is strange > in lieu of `-s' (output file suffix) working just fine. > > that by accident or is there some rationale? i think the answer is a little bit of both. it's easy to make split support mixing any number of regular expressions with one line count. (i believe using -f with -e works already, unless you want a prefix for even re-matched files. proposed version attached - erik --- ; whatis x xx x=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) fn xx {for(i in $x)echo $i} ; xx | $home/v.split -e '^7$' -n 10 ; for(i in *)echo $i && mc $i xaa 1 2 3 4 5 6 xab 7 8 9 10 xac 11 12 13 14 15 16 17 18 19 20 ; xx|$home^/v.split -f X -e '^7$' -n 10 ; lc Xaa Xab Xac ; xx|$home^/v.split -e '^(1)$' -e '^(7)$' -n 10 ; for(i in *)echo $i && mc $i 1 1 2 3 4 5 6 7 7 8 9 10 xaa 11 12 13 14 15 16 17 18 19 20