LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03: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, 04: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



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

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

All times are GMT -5. The time now is 01:28 PM.

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
Open Source Consulting | Domain Registration