Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Sri3001
Posted By Sri3001
Hi Scrutinizer,

Please find the o/p of od -c command

[xstif@cletld3 ~]$ od -c sri1.txt
0000000 \ \n ' \n " \n

also the OS i am working with is Linux
Posted By Sri3001
Thanks But if you see the below set of...

But if you see the below set of codes ,
[xstif@cletld3 ~]$ cat sri1.txt
[xstif@cletld3 ~]$ sed 's/\"/\\\"/g' sri1.txt
[xstif@cletld3 ~]$ sed "s/\'/\\\'/" sri1.txt...
Posted By Sri3001
Doubt in sed
Hi All

Can some one explain what does the given two sed commands do :confused:

sed "s/\'/\\\'/g" |
sed 's/\"/\\\"/g'

Please find the sample code i used to find out what this is doing ,...
Showing results 1 to 3 of 3


Featured Tech Videos

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