The UNIX and Linux Forums  


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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-25-2009
Sepia Sepia is offline
Registered User
  
 

Join Date: Apr 2007
Location: England
Posts: 49
Quote:
Originally Posted by vgersh99 View Post
Code:
grep "monkey" zoo.log | tail -1 | sed "s/^/$(date)/" >> cron-zoo-log
Excellent.

That is putting the date before the grep result - is there a way to switch it around and maybe separate them by a comma?