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 -->
  #2 (permalink)  
Old 05-26-2008
jaduks's Avatar
jaduks jaduks is offline
Registered User
  
 

Join Date: Aug 2007
Location: Assam,India
Posts: 167
Is your expected output is something like this ?


Code:
$  sed -n '/BEGIN\|END/ s_\[\(.*\)\].*\[\(.*\)\].*_\2_p' og.txt
1211425845
1211425846

//Jadu