Search Results

Search: Posts Made By: Rajib Podder
6,399
Posted By Rajib Podder
Hi Abhilash, you can try below command. ...
Hi Abhilash,

you can try below command.

cat test.txt|tr -d '"'|sed 's/\([^|]*\)/"&"/g'|sed 's/..$//'

[*****@***** script]$ cat test.txt|tr -d '"'|sed 's/\([^|]*\)/"&"/g'|sed 's/..$//'...
3,399
Posted By Rajib Podder
Hi Ravi, Definitely I will do that . ...
Hi Ravi,

Definitely I will do that .

Regards,
Rajib
3,399
Posted By Rajib Podder
Hi Ravi, It is working perfectly now.One...
Hi Ravi,

It is working perfectly now.One more question,can we add multiple condition and multiple replacement on same command.

Regards,
Rajib
3,399
Posted By Rajib Podder
Hi Ravi, But the output should include...
Hi Ravi,

But the output should include sham.r1 also etc.It is not visible

---------- Post updated 10-06-17 at 12:05 AM ---------- Previous update was 10-05-17 at 11:59 PM ----------

Hi Ravi,...
3,399
Posted By Rajib Podder
Hi R, Thanks for your help. But if it...
Hi R,

Thanks for your help.

But if it like below format

my self is peter.<variable>@king then how to change only peter to sham based on @king.
i.e.

myself is peter.r1@king
myself is...
3,399
Posted By Rajib Podder
Replace particular words in file based on if finds another words in that line
Hi All,

I need one help to replace particular words in file based on if finds another words in that file .

i.e.

my self is peter@king.
i am staying at north sydney.
we all are peter@king....
Showing results 1 to 6 of 6

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