Search Results

Search: Posts Made By: DushyantG
37,782
Posted By DushyantG
Thanks Pravin and Tene. I did not want to use sed...
Thanks Pravin and Tene. I did not want to use sed inside perl script. By looking at Pravin's post I figured out the solution.
If the string is
It's Simpson's book
And I want it to become like...
37,782
Posted By DushyantG
Replace single quote with two single quotes in perl
Hi I want to replace single quote with two single quotes in a perl string.
If the string is <It's Simpson's book> It should become <It''s Simpson''s book>
9,160
Posted By DushyantG
Thanks for replying. I now get it why I had those...
Thanks for replying. I now get it why I had those extra brackets [[ ( lol ). Even though I can see proper contents of the file on echoing the the variable within quotes. But when I pass this variable...
3,113
Posted By DushyantG
Thank you very much for the replies. That ( sed...
Thank you very much for the replies. That ( sed "s/'/''/g" ) solved my problem Now I have another problem . I have a file with multi-line text in it. I want the same file to have its entire content ...
3,113
Posted By DushyantG
replacing ' with '' using sed
Hi,
I have a text file and I would like to replace all occurrences of single quote ' with two consecutive single quotes '' .
I have tried sed s/\'/\'\'/ < Folder/outputFile.txt >...
9,160
Posted By DushyantG
Thank u for replying. But I need to call the...
Thank u for replying. But I need to call the stored procedure by db2 "call SomeProc(SomeQueryString)" Now I cannot call it like db2 "call SomeProc("$query")" So quoting wont help. I understand that...
9,160
Posted By DushyantG
Problem getting the content of a file in a shell script variable
Hi,
I have a text file that has a long multi-line db2 CTE query. Now I want to store all the contents of this file (i.e. the entire query) in a shell script variable. I am trying to achieve it by...
Showing results 1 to 7 of 7

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