Monday, September 18, 2006

csplit ( Unix )

Split the text with "/9j/4"


csplit -f chap. FILENAME '/\/9j\/4/' '{20}'

-f prefix
/expr/ create file from the current line up to the line
containing the regular expression expr.
{n} Repeat argument n times.


(p 46, UNIX IN A NUTSHELL, O'REILLY)

No comments: