The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
parse through one text file and output many
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
parse through one text file and output many
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
02-18-2008
radoulov
addict
Join Date: Jan 2007
Location: Milano, Italia/Варна, България
Posts: 2,024
Code:
awk '/^Begin/{close(f);f=$2".txt"}f{print>f}' input
radoulov
View Public Profile
Find all posts by radoulov