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 -->
  #1 (permalink)  
Old 03-23-2008
busillis busillis is offline
Registered User
 

Join Date: Mar 2008
Posts: 1
Exclamation SED - editing file names (End of line problem?)

For lists in sed, to say what to replace, is this correct: [$ .]

I am hoping that this would recognise that either a "." is present, or that the substitution happens at the end of the line.

For files with extensions [picture.jpg], my script works perfectly.

My problem is, files without extentions, i.e. [picture]. The script gives the following message for these cases: "picture and picture are identical".
Reply With Quote
Remove advertisements
!!
!! Forum Sponsor