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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-03-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,162
Code:
echo 'SCA20060303_17514_IN.TXT' | sed 's#^\([^_][^_]*\)_[0-9][0-9]*\(.*\)#\1\2#'
Reply With Quote