![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Case-sensitive -replace command I am using the -replace command to replace tokens i some text files. However, -replace seems to act upon tokens that I do not wish to have replaced. For instance, the following command does not just replace the token 'Test', it also replaces 'TEST'. Get-Content file1.txt,file2.txt,file3.txt | % { $_ -replace 'Test', 'Test4' } How can I tell the -replace command to replace tokens in a case-sensitive way? |
| | #3 (permalink) | ||||||||||||
| Guest | Re: Case-sensitive -replace command Thanks Kiron, the -creplace operator did the trick. Thanks for pointing out the help topic about operators; I found a lot of useful stuff there that I never knew existed... "Kiron" wrote:
| ||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: replace method is case sensitive | Kiron | PowerShell | 0 | 07-16-2008 03:48 PM |
| sensitive touch pad | paf | Vista account administration | 0 | 06-20-2008 05:21 PM |
| Context sensitive help in wpf application | Atul Bahl | Avalon | 0 | 02-27-2007 11:48 AM |
| Filesystem Still Case Sensitive After Uninstalling SUA | Michael J. Wheeler | Vista General | 3 | 02-16-2007 02:05 AM |
| Filesystem Still Case Sensitive After Uninstalling SUA | Michael J. Wheeler | Vista General | 2 | 02-07-2007 11:09 AM |