Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 1997 22:57:21 +0200 (CEST)
From:      Philippe Charnier <charnier@xp11.frmug.org>
To:        hackers@FreeBSD.org
Subject:   split -p pattern: new option
Message-ID:  <199706012057.WAA13926@xp11.frmug.org>

next in thread | raw e-mail | index | archive | help
Hi,

In order to split a big patch file into individual patches, I hacked a new
option for split(1) that can split if the current line matches the given
pattern.

% split -p '^diff -rc2N' big.patch x.

I think that it's an useful option and it maybe should be added. Comments?

begin 644 patch.split.gz
M'XL(");AD3,"`W!A=&-H+G-P;&ET`*56;4_;2!#^O/X5`Z<C#FO'+R'DK9PH
M$.Z0.(I**U5'$7*<=6*=8UMK!X*._/>;V;4#2:EZU2%A[\[.S#[SS+/KA`\%
M3.(H&L`9/N-T"BWC(IV(Y0"*/(G+5F@<_?\_X^/I#41Q(@;@S+*Y\&?.N13B
MY.:L%3X4,LM*IY"ALRAD:QRGCMK9J?:W'@PI2AF+!T(G\57$60I>JVT0<+`7
M8$N<K?':MEV/F=?O=QVW[?A]<`\&;7_@]QE%<LZW?`X=UP//':";YQG'QV`?
M^-8A<'QVX?C8@%]$BON!LP]I5D(2IR7L.P;@0IR&R6(BX%WQ5#AY((-Y:_:;
MP3?MY5,N"K)O1(1D5M87FY"2+`2AXQ*$CE=#>,E83I)XO!58($OI=,NX2&-T
MW@(DQ50L:S`3@7T7<#8ZO[RX&C'/=5W&&-9Y)J)@D920+N94KR@@%U*UL:5+
M5Q#[!/'0L_H*(M+"((XF<`2V9T%6C88JX46:+THG6Y3X4GE@(HI0QGF9R4+G
M#&>!9#".Y.V?[[^<W%S\-;H;:C07S@<8+Z)(R->>41K,!?E>O__TQ^7HZD[O
M=$[):0ERB>4M50C7(7E0ED*FM[[KUKFOM0G*#.9!&<ZTNV+I'NN1T^70X*JT
M/$J"Z9!X>\CB":3B4=5Q?W]MFF1I-H?5DI*7M[E"A'7;V$W>[5D]11@C(84S
MC&($#_9%;L%^3EO8['%&R4TSG"&+4U%F>6D&<AI:@,\'"W9MU_/;!YW#;J\_
M'B2#W683=HCOIL&9@HIQ+F+_Z4SYZUS`6/$8(R^`\4WXAPQA4`AHN(T!Z)&W
M'OGK47L].F@,7H(Z:_/A>M1=CWKK41^#B#'/:Y/&/*]O>9XFC3$\BJ:)RM3"
M/`(4?YDE)M:%!5FP1S1Z+M;P#AF`YV<B5E7"&!ZPI8GBW/VU&$"<)&(:)$K@
M$&:+M&SMHFY5&NHE^H^E"/XF$BO\>0,&2C:5DK1FZ.@IV6!$3;VGHA16%%.8
MS7-S#\54Y[?@X^CW^]&73Z.KL]'9,TVN/MQ\/E'$NTU0P6_#5=K,-Z#R%ZB(
M>J(/KZ*=+8I@*DQ=SDIS>J`Y[1S4.F1B&9=@NLIKA?]*P+ZI,E,%JB@2%L/-
M([R^52W*G4)UY*JZ%GQJ5@^XW_8MOU,WC57GI8+"&$WNLURDFBRRK5#WN)!)
M,$^IL:<"'W@A#"$1J6T/T<!Y4SDI6/OD<`2-KVD#]O:`\R3$$X666APD6.7-
MQFJ%,MJ`N3EMJ5<HT:.,2V'BC67AH@7DK!JA!I4?-4/U0CGO-NMXO2<=-3VO
MD6]M@16L,[VB0EM$4HAZ\34OKF[MCQC!*OEK3G8T)TT4=5K&Z4(,7]9U*^L(
M`+*Y%*%D)<)*I;H`"UP+KCY?7N*@V=0A;"OI"@C]9L*J$SNO.O%-L!+!2IO?
MZ@[_;\WA;_>&;[:&?],9OM$8OMT7OFX+_UY75NO+"!._P\35];A=3E7JCTM1
MAZ>G#F?;I1<=G>K\&BJW_II$.7[LR\C$CSO6;1GVKG*J?K;!K3V&\5,I[M65
K=H=S?<6MY^JS=:N_CG=W7U/%UT_FL//Z"OQ.PNIF\/3-\"\+G#ET;`H``-65
`
end

-- 
------                                                            ------ 
Philippe Charnier                               charnier@lirmm.fr (smtp)       
                                          charnier@xp11.frmug.org (uucp) 

    ``a PC not running FreeBSD is like a venusian with no tentacles'' 
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706012057.WAA13926>