The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Single line file editing command? gator76 Shell Programming and Scripting 1 04-03-2008 07:09 AM
Editing last line of a file Anitha Chandran Shell Programming and Scripting 1 02-28-2008 09:18 AM
Editing multiple file names in one go KeesH UNIX for Dummies Questions & Answers 3 10-06-2007 01:20 AM
problem editing big file in vi videsh77 UNIX for Dummies Questions & Answers 4 12-29-2004 01:28 PM
editing bash command line with vi peter.herlihy UNIX for Dummies Questions & Answers 3 09-03-2002 06:36 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2008
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
Forum Sponsor
  #2 (permalink)  
Old 03-23-2008
Moderator
 

Join Date: Dec 2003
Location: /ksh93
Posts: 863
Please provide us with the actual sed script
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0