The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
X num of lines before and after
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
X num of lines before and after
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-15-2008
Tytalus
echo {1..9}^2\;|bc
Join Date: Jun 2003
Location: Scotland
Posts: 440
not the cleanest solution but:
Code:
awk '/Today's datetime is/{print}/DMX Info/{print t}!/DMX Info/{t=s;s=$0}' file
should work
Tytalus
View Public Profile
Find all posts by Tytalus