LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2003, 04:51 PM   #1
jkoch
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
Question Case sensitivity in SED substitutions


I'm trying to use sed to do substitutions in several hundred files, but the use of upper and lower case is different in each file. Some files use all upper, some use all lower, and some use a combination. Using the sed substitute command (eg. s/old/new/), is there any way to tell it to substitute regardless of case?
 
Old 02-21-2003, 05:15 PM   #2
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
does s/old/new/I do the trick for ya?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable case sensitivity in mysql query in Fedora Linux Core 3 radatan71 Linux - Software 1 10-29-2005 12:39 AM
changing case in sed phoenix7 Linux - Software 8 08-30-2005 08:18 AM
Activating case sensitivity in `sort' command? wirawan0 Linux - General 4 06-26-2004 11:20 AM
sed? -- making substitutions scabies Linux - Software 1 12-22-2003 12:39 AM
Case-Sensitivity in Python Odd_Bloke Programming 2 09-02-2003 05:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration