Re: Split file by contents
- From: "howa" <howachen@xxxxxxxxx>
- Date: 27 Sep 2006 08:51:27 -0700
Davide Bianchi 寫道:
On 2006-09-27, howa <howachen@xxxxxxxxx> wrote:
how to split a large XML file without a XML parser (since a few GB
data)
use ed:
ed - -s yourfilenamehere <<EOF > /dev/null
1
/^<book>$/
.,/^<\/book>$/w newfilenamehere
q
EOF
man ed for more info
Note: not tested.
Davide
--
Security-wise, NT is a server with a "Kick me" sign taped to it.
--Peter Gutmann
Hello, as my file is very large, so use of `sed` is better ?
.
- Follow-Ups:
- Re: Split file by contents
- From: Chill Out
- Re: Split file by contents
- References:
- Split file by contents
- From: howa
- Split file by contents
- Prev by Date: Re: sudo with my aliases
- Next by Date: Re: PCLinuxOS .93 Big Daddy? A Piece Of ***!!!!!
- Previous by thread: Re: Split file by contents
- Next by thread: Re: Split file by contents
- Index(es):