Search Results

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

Please find the o/p of od -c command

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


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

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...
933
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:17 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy