Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-21-2003, 03:51 PM   #1
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, 04:15 PM   #2
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?


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-28-2005 11:39 PM
changing case in sed phoenix7 Linux - Software 8 08-30-2005 07:18 AM
Activating case sensitivity in `sort' command? wirawan0 Linux - General 4 06-26-2004 10:20 AM
sed? -- making substitutions scabies Linux - Software 1 12-21-2003 11:39 PM
Case-Sensitivity in Python Odd_Bloke Programming 2 09-02-2003 04:20 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:32 PM.

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