The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 04-22-2009
LRoberts LRoberts is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 87
I am sooo close!!!

I am now doing this...
Code:
ps -ef | grep nco_p_syslog | grep -v grep | awk '{print $NF}' | awk -F_ '{print $2}' >> $OMNIHOME/bin/syslogfile.dat
Which gives this result....
Code:
dc000p.log
I just can not figure out how to cut the .log from the end :-(