The UNIX and Linux Forums
>
Special Forums
>
Windows & DOS: Issues & Discussions
Filter data from text file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Filter data from text file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
8
(
permalink
)
04-14-2008
era
Herder of Useless Cats
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,111
Code:
awk '/^----*Table/{table=$0} /^IP=/{ print table }' file
Do you really have a variable number of dashes before the "Table"?
era
View Public Profile
Visit era's homepage!
Find all posts by era