The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 10-21-2008
phreezr phreezr is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 11
Thank you so much for your reply. Looks like it should work, I am piping
/usr/dev/blah/Arch/release/812-1235-P05/files/list which is from a previous grep command into sed so like
Code:
grep command_to_get_path | sed 's/.*\([0-9]\{3\}-[0-9]\{4\}-[0-9A-Z]\{3\}\).*/\1/'

and it just displays the whole path again, it doesn't strip out everything around the 812-1235-P05. Am I doing something completely wrong? I must be.

Thanks again!