Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-15-2008
Tytalus's Avatar
Tytalus Tytalus is offline Forum Advisor  
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