Forum Discussion

sunny sunny's avatar
sunny sunny
Copper Contributor
Oct 01, 2017

Search and Replace in power shell

Hello,

 

I am new to power shell and i am trying to achive below. I have file test.txt with data as shown below.

i want the search for variable2 and update the value as below.

select * from table1 order by column

Can you please guide me on how to achive this?

 

cat test.txt

variable1=DB1

variable2=select * from table1;

 

 

2 Replies

Resources