Search Results

Search: Posts Made By: frajer
55,399
Posted By Ygor
I didn't read the bit about filenames like...
I didn't read the bit about filenames like "doc.1" before. Try this instead...awk '/^DOC/{f="doc."++d} f{print > f} /^END/{close f; f=""}' infile$ head -1000000 doc.*
==> doc.1 <==
DOC100
aaaaaa...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 02:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy