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 -->
  #6 (permalink)  
Old 11-25-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
I am not sure what you are going to do. If you echo "$comment1", what do you get? Is the output you want to parse in a variable? If it is just the output of a command, try using that command and put a pipe | behind that command followed by the sed command. If it is a file, use it as I did above. If there is no reason to force the text into a variable, don't do it.