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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-18-2008
royalibrahim royalibrahim is offline
Registered User
 

Join Date: Jun 2007
Posts: 104
A sed doubt - need explanation

Hi,

The following command works fine for me, but I could not grasp the logic working behind of sed command, it's obscure to me


Code:

echo "./20080916/core/audioex.amr" | sed "s%\([^.]\)/%\1_%g"

o/p: ./20080916_core_audioex.amr

Could anyone please explain to me in detail, that how the sed is working here?
Sponsored Links