Search Results

Search: Posts Made By: Zaheer.mic
16,865
Posted By Zaheer.mic
Find & Replace string in multiple files & folders using perl
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'


this is simple logic to find and replace in multiple files & folders
Hope this helps.

Thanks
Zaheer
6,362
Posted By Zaheer.mic
Running multiple sql files in unix
In c:/zaheer/123-456/sql/ folder i have below 7 sql files.

cv_abc_a.sql
cv_abc_b.sql
cv_abc_c.sql
vtemp_d.sql
vtemp_e.sql
cv_abc_f.sql
Exviews.sql

In Exviews.sql file i have mentioned...
4,090
Posted By Zaheer.mic
what is RS err RS RS $0) here Please explian. ...
what is RS err RS RS $0) here Please explian.

Thanks in advace
3,274
Posted By Zaheer.mic
finding a block in a file and replace with another file block.
(1) Yes but how is this block different from the other 24? You will need this information in order to identify and replace this block correctly (out of the 25).

Ans: The 1st line and last line of...
5,641
Posted By Zaheer.mic
Please suggest some code for the above queryASAP....
Please suggest some code for the above queryASAP.

Thanks in advance.
5,641
Posted By Zaheer.mic
(1) Yes but how is this block different from the...
(1) Yes but how is this block different from the other 24? You will need this information in order to identify and replace this block correctly (out of the 25).

Ans: The 1st line and last line of...
5,641
Posted By Zaheer.mic
The above code is excuting but not replacing the...
The above code is excuting but not replacing the file which is present in repl_file.Please suggest

---------- Post updated at 11:14 PM ---------- Previous update was at 11:10 PM ----------
...
5,641
Posted By Zaheer.mic
Hi I tried with the above code but its not...
Hi I tried with the above code but its not working.

I will explain you once again

In my xyz_abc.sql file there are multiple blocks.
Just imagine there are 25 blocks in xyz_abc.sql file in...
5,641
Posted By Zaheer.mic
Find 5 lines and replace with 18 line in sql file where it contains multiple blocks.
My sql file xyz_abc.sql in this file there are multiple sql block in this block I need to find the following block

rem Subset Rows (&&tempName.*)
CREATE VIEW &&tempName.* AS
SELECT *
FROM...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 05:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy