{"id":894,"date":"2010-07-26T01:43:58","date_gmt":"2010-07-26T07:43:58","guid":{"rendered":"http:\/\/edsionte.com\/techblog\/?p=894"},"modified":"2010-07-28T03:17:59","modified_gmt":"2010-07-28T09:17:59","slug":"%e5%ae%9e%e7%8e%b0cp%e5%91%bd%e4%bb%a4-2","status":"publish","type":"post","link":"http:\/\/edsionte.com\/techblog\/archives\/894","title":{"rendered":"\u5b9e\u73b0cp\u547d\u4ee4\u2013\u5355\u4e2a\u6587\u4ef6\u7684\u62f7\u8d1d"},"content":{"rendered":"<p>\u6628\u5929\u6211\u4eec\u4e3b\u8981\u4ece\u4e3b\u51fd\u6570\u5165\u624b\uff0c\u5bf9\u547d\u4ee4\u884c\u53c2\u6570\u8fdb\u884c\u5408\u6cd5\u6027\u68c0\u6d4b\uff0c\u5e76\u5f15\u5bfc\u4e3b\u7a0b\u5e8f\u8fdb\u5165\u76f8\u5e94\u7684\u5b50\u51fd\u6570\u3002\u4eca\u5929\u6211\u4eec\u8981\u5b9e\u73b0\u4e00\u4e2a\u6700\u57fa\u672c\u7684\u590d\u5236\u529f\u80fd\uff0c\u5c06\u4e00\u4e2a\u6e90\u6587\u4ef6\u590d\u5236\u5230\u6307\u5b9a\u8def\u5f84\u3002\u4e4b\u6240\u4ee5\u8bf4\u8def\u5f84\uff0c\u662f\u56e0\u4e3a\u76ee\u7684\u6587\u4ef6\u53ef\u80fd\u662f\u4e00\u4e2a\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u4e5f\u53ef\u80fd\u662f\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\u6216\u8005\u662f\u4e00\u4e2a\u76ee\u5f55\uff08\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\u4f1a\u51fa\u9519\uff09\u3002\u5728\u6211\u4eec\u8be6\u7ec6\u5206\u6790\u4ee3\u7801\u524d\uff0c\u5148\u770b\u770b\u6211\u505a\u7684\u8fd9\u4e2amy_cp\u7684\u8fd0\u884c\u7ed3\u679c\u5427\u3002<br \/>\n1.\u6210\u529f\u5c06\u4e00\u4e2a\u5df2\u5b58\u5728\u6e90\u6587\u4ef6\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u6307\u5b9a\u6587\u4ef6\u540d\u7684\u6587\u4ef6\u4e2d\u3002<\/p>\n<pre class=\"brush:c\">gues@huangwei-desktop:~\/code\/shell_command$ ls\r\ncptest  dd  dd1  ed  ls  ls1  my_cp  my_cp1  my_cp.c  my_ls.c  my_shell.c  newls.c  tdir  test  tfile.c\r\ngues@huangwei-desktop:~\/code\/shell_command$ .\/my_cp tfile.c ttfile.c\r\ngues@huangwei-desktop:~\/code\/shell_command$ ls -l\r\n\u603b\u7528\u91cf 124\r\n-rw-r--r-- 1 gues gues  7378 2010-06-22 23:58 my_ls.c\r\n-rw-r--r-- 1 gues gues  6271 2010-07-17 14:29 my_shell.c\r\n-rw-r--r-- 1 gues gues  7378 2010-07-25 17:20 newls.c\r\ndrwxr-xr-x 2 gues gues  4096 2010-07-25 18:03 tdir\r\ndrwxr-xr-x 3 gues gues  4096 2010-07-25 18:03 test\r\n-rw-r--r-- 1 gues gues  6271 2010-07-25 16:35 tfile.c\r\n-rw-r--r-- 1 gues gues  6271 2010-07-26 10:14 ttfile.c<\/pre>\n<p>2.\u5c06\u5df2\u5b58\u5728\u7684\u6e90\u6587\u4ef6\u62f7\u8d1d\u5230\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\u4e0b\uff0c\u4f1a\u63d0\u793a\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<pre class=\"brush:c\">gues@huangwei-desktop:~\/code\/shell_command$ .\/my_cp tfile.c ~\/nothisdirectory\/\r\nmy_cp:can't create the file:\"\/home\/gues\/nothisdirectory\/\":it is a directory.<\/pre>\n<p>3.\u5c06\u4e0d\u5b58\u5728\u7684\u6e90\u6587\u4ef6\u62f7\u8d1d\u5230\u4e00\u4e2a\u76ee\u5f55\u6216\u6587\u4ef6\u4e2d\uff0c\u63d0\u793a\u76f8\u5e94\u9519\u8bef\u3002\u8fd9\u91cc\u7684\u76ee\u6807\u6587\u4ef6\u6216\u6307\u5b9a\u76ee\u5f55\u662f\u5426\u5b58\u5728\u4e0d\u786e\u5b9a\u3002\u56e0\u4e3a\u53ea\u6709\u4e00\u4e2a\u6e90\u6587\u4ef6\u65f6\uff0ccp\u547d\u4ee4\u603b\u5148\u68c0\u67e5\u6e90\u6587\u4ef6\u662f\u5426\u5b58\u5728\u3002<\/p>\n<pre class=\"brush:c\">gues@huangwei-desktop:~\/code\/shell_command$ .\/my_cp nothisfile ~\/nothisdirectory\r\nmy_cp: can't get file status of \"nothisfile\" : no this file or directory.<\/pre>\n<p>4.\u6210\u529f\u5c06\u6e90\u6587\u4ef6\u62f7\u8d1d\u5230\u5df2\u5b58\u5728\u7684\u6307\u5b9a\u76ee\u5f55\uff0c\u7531\u4e8e\u6307\u5b9a\u8def\u5f84\u6ca1\u6709\u6587\u4ef6\u540d\uff0c\u56e0\u6b64\u76ee\u6807\u6587\u4ef6\u540d\u4e0e\u6e90\u6587\u4ef6\u540d\u76f8\u540c\u3002<\/p>\n<pre class=\"brush:c\">gues@huangwei-desktop:~\/code\/shell_command$ .\/my_cp tfile.c ~\/\r\ngues@huangwei-desktop:~\/code\/shell_command$ ls ~\/\r\ncode     Documents  EIOffice               EIOffice_Personal_Lin.tar.gz  Pictures   tfile.c  Yozo_Office\r\ncptest   Downloads  EIOfficelog.txt        examples.desktop              Public     tmp\r\nDesktop  edsionte   EIOffice_Personal_Lin  Music<\/pre>\n<p>5.\u4e4b\u6240\u4ee5\u9996\u5148\u6f14\u793a\u8fd9\u4e9b\u7ed3\u679c\u662f\u56e0\u4e3a\u6211\u4eec\u5728\u7f16\u5199cp_single\u51fd\u6570\u7684\u65f6\u5019\u90fd\u8981\u8003\u8651\u5230\u8fd9\u4e9b\u60c5\u51b5\uff0c\u52a0\u4e4b\u8def\u5f84\u76f8\u5bf9\u7075\u6d3b\u53ef\u80fd\u5c11\u4e00\u4e2a\/\u5c31\u4f1a\u4ea7\u751f\u4e0d\u7ed3\u679c\u3002\u6bd4\u5982\u4e0b\u9762\u7684\u7ed3\u679c\uff1a<\/p>\n<pre class=\"brush:c\">gues@huangwei-desktop:~\/code\/shell_command$ .\/my_cp tfile.c ~\/nothisdirectory\r\ngues@huangwei-desktop:~\/code\/shell_command$ ls ~\/\r\ncode     Documents  EIOffice               EIOffice_Personal_Lin.tar.gz  nothisdirectory  Templates  Videos\r\ncptest   Downloads  EIOfficelog.txt        examples.desktop              Pictures         tfile.c    Yozo_Office\r\nDesktop  edsionte   EIOffice_Personal_Lin  Music<\/pre>\n<p>\u62f7\u8d1d\u6210\u529f\u3002\u8fd9\u91cc\u6211\u4eec\u8f93\u5165\u7684\u53c2\u6570\u4ec5\u4ec5\u4e0e2\u4e2d\u8f93\u5165\u7684\u53c2\u6570\u5c11\u4e00\u4e2a\/\uff0c\u4e3a\u4ec0\u4e48\u7ed3\u679c\u5c31\u5927\u4e0d\u76f8\u540c\uff1f\u56e0\u4e3a2\u4e2d\u76ee\u6807\u6587\u4ef6\u662f\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\uff08\uff5e\/nothisdirectory\/\uff09\uff0c\u800c\u4e0a\u9762\u7684\u547d\u4ee4\u662f\u5c06\u5df2\u5b58\u5728\u6587\u4ef6\u62f7\u8d1d\u5230\u5df2\u5b58\u5728\u76ee\u5f55\uff08\uff5e\/\uff09\u4e0b\uff0c\u5e76\u4e14\u6307\u5b9a\u6587\u4ef6\u540d\u4e3anothisdirectory\u3002<br \/>\n\u597d\u4e86\uff0c\u6211\u4eec\u4e0b\u9762\u6765\u5206\u6790\u4ee3\u7801\u3002\u8fdb\u5165cp_single\u51fd\u6570\uff0c\u6211\u4eec\u5c06\u4f20\u9012\u8fc7\u6765\u7684\u8def\u5f84\u62f7\u8d1d\u5230\u5c40\u90e8\u53d8\u91cfsrc_path\u548cdest_path\u5f53\u4e2d\u3002\u56e0\u4e3acp_single\u51fd\u6570\u53ef\u80fd\u5728\u7a0b\u5e8f\u7684\u4e00\u6b21\u8fd0\u884c\u4e2d\u88ab\u8c03\u7528\u591a\u6b21\uff0c\u5982\u679c\u4fee\u6539\u4e86\u4f20\u9012\u8fc7\u6765\u7684\u8def\u5f84\uff08\u6307\u9488\uff09\u90a3\u4e48\u4f1a\u5bfc\u81f4\u4e0b\u9762\u7684\u8c03\u7528\u4e0d\u6b63\u786e\u3002\u5982\u679c\u4f20\u9012\u8fc7\u6765\u7684\u6e90\u6587\u4ef6\u53ea\u662f\u4e00\u4e2a\u6587\u4ef6\u540d\uff0c\u90a3\u4e48\u6211\u4eec\u81ea\u52a8\u4e3a\u5176\u52a0\u4e0a\u5f53\u524d\u8def\u5f84\uff0c\u8fd9\u53ef\u4ee5\u65b9\u4fbf\u4e0b\u9762\u63d0\u53d6\u6587\u4ef6\u540d\u3002<\/p>\n<pre class=\"brush:c\">\r\nvoid cp_single(char *temp_src_path,char* temp_dest_path)\r\n{\r\n\tstruct stat buf;\r\n\tint len;\r\n\tchar ch[10],filename[PATH_MAX+1],dest_dir[PATH_MAX+1];\r\n\tint fdrd,fdwt,i,j,k;\r\n\tchar src_path[PATH_MAX+1],dest_path[PATH_MAX+1];\r\n\r\n\tstrcpy(src_path,temp_src_path);\r\n\tstrcpy(dest_path,temp_dest_path);\r\n\tfor(k=0;k<\\strlen(src_path);k++)\r\n\t{\r\n\t\tif(src_path[k]=='\/')\r\n\t\tbreak;\r\n\t}\r\n\tchar temp_path[PATH_MAX+1]=\".\/\";\r\n\tif(k==strlen(src_path))\r\n\t{\r\n\t\tstrcat(temp_path,src_path);\r\n\t        strcpy(src_path,temp_path);\r\n\t}\r\n\r\n        \/\/the following code be omited\r\n}\r\n<\/pre>\n<p>\u63a5\u7740\uff0c\u4ece\u6e90\u6587\u4ef6\u8def\u5f84\u4e2d\u63d0\u53d6\u6587\u4ef6\u540d\u3002\u5373\u63d0\u53d6\u6700\u540e\u4e00\u4e2a\/\u7b26\u53f7\u540e\u9762\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<pre class=\"brush:c\">\t\/\/extract the file name from src_path\r\n\tfor(i=strlen(src_path)-1;i&gt;\\0;i--)\r\n\t{\r\n\t\tif(src_path[i]=='\/')\r\n\t\t\tbreak;\r\n\t}\r\n\tj=k=0;\r\n\tfor(j=i;j&lt;\\strlen(src_path);j++)\r\n\t{\r\n\t\tfilename[k++]=src_path[j];\r\n\t}\r\n\tfilename[k]='\\0';<\/pre>\n<p>\u5982\u679c\u76ee\u6807\u6587\u4ef6\u8def\u5f84\u5b58\u5728\uff0c\u5e76\u4e14\u4e0d\u542b\u6587\u4ef6\u540d\uff0c\u90a3\u4e48\u8fd9\u65f6\u5019\u5c31\u7528\u5230\u4e86\u6211\u4eec\u4e0a\u9762\u63d0\u53d6\u7684\u6e90\u6587\u4ef6\u540d\uff0c\u7528strcat\u8fde\u63a5\u5373\u53ef\u3002\u5f53\u7136\u5728\u8fde\u63a5\u4e4b\u524d\u8fd8\u8981\u68c0\u67e5\u76ee\u6807\u6587\u4ef6\u5939\u662f\u5426\u5305\u542b\/\uff0c\u5982\u679c\u5305\u542b\u5219\u5220\u9664\uff0c\u5426\u5219\u4f1a\u8fde\u63a5\u6210\u8fd9\u6837\uff1aexisteddir\/\/filename\u3002\u5f53\u4e0d\u5b58\u5728\u6b64\u76ee\u6807\u8def\u5f84\uff0c\u6211\u4eec\u8981\u68c0\u6d4b\u8fd9\u4e2a\u8def\u5f84\u672b\u5c3e\u8fd9\u662f\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\uff08\u4e0a\u8ff0\u4e3e\u4f8b2\uff09\u8fd8\u662f\u4e00\u4e2a\u5df2\u5b58\u5728\u76ee\u5f55\u4e0b\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\uff08\u4e3e\u4f8b5\uff09\u3002\u6211\u4eec\u5148\u627e\u5230\u76ee\u6807\u8def\u5f84\u4e2d\u51fa\u73b0\u7684\u6700\u540e\u4e00\u4e2a\/\uff0c\u7136\u540e\u68c0\u6d4b\u8fd9\u4e2a\/\u4e4b\u524d\u7684\u8def\u5f84\u662f\u5426\u5b58\u5728\u3002\u6bd4\u5982\u5bf9\u4e8e\u8def\u5f84\uff1a\uff5e\/existdirectory\/nothisdirectory\/nothisfile\u3002\u6211\u4eec\u9700\u8981\u68c0\u6d4b\u7684\u662f\uff5e\/existdirectory\/nothisdirectory\/\u662f\u5426\u5b58\u5728\uff0c\u82e5\u4e0d\u5b58\u5728\u90a3\u5c31\u663e\u793a\u51fa\u9519\u4fe1\u606f\u3002\u5982\u679c\u5b58\u5728\uff0c\u90a3\u4e48\u6309\u7167\u5b8c\u6574\u8def\u5f84\uff1a\uff5e\/existdirectory\/nothisdirectory\/nothisfile\u6253\u5f00\u6587\u4ef6\u5373\u53ef\u3002\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre class=\"brush:c\">\r\n\t\/\/check the if dest path has exsited\r\n\tif(stat(dest_path,&buf)==0)\r\n\t{\r\n\t\t\/\/the dest_path exsited\r\n\t\tif(S_ISDIR(buf.st_mode))\r\n\t\t{\r\n\t\t\tif(dest_path[strlen(dest_path)-1]=='\/')\r\n\t\t\t\tdest_path[strlen(dest_path)-1]='\\0';\r\n\t\t\tstrcat(dest_path,filename);\r\n\t\t}\r\n\t}\r\n\telse\r\n\t{\r\n\t\t\/\/the dest_path didn't exsit\r\n\t\tfor(i=strlen(dest_path)-1;i>=0;i--)\r\n\t\t{\r\n\t\t\tif(dest_path[i]=='\/')\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tif(i>=0)\r\n\t\t{\r\n\t\t\tstrncpy(dest_dir,dest_path,i+1);\r\n\t\t        if(stat(dest_dir,&buf)==-1)\r\n\t            \t {\r\n\t\t         \tprintf(\"my_cp:accessing:\\\"%s\\\" :it is't a directory.\\n\",dest_path);\r\n\t\t\t        exit(1);\r\n               \t\t}\r\n\t\t}\r\n\r\n\t}<\/pre>\n<p>\u4e0b\u9762\u662fcp\u547d\u4ee4\u548c\u672c\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u679c\u7684\u6bd4\u8f83\u3002<\/p>\n<pre class=\"brush:c\">gues@huangwei-desktop:~\/code\/shell_command$ .\/my_cp tfile.c ~\/nothisdirectory\/nothisfile\r\nmy_cp:accessing:\"\/home\/gues\/nothisdirectory\/nothisfile\" :it is't a directory.\r\ngues@huangwei-desktop:~\/code\/shell_command$ cp tfile.c ~\/nothisdirectory\/nothisfile\r\ncp: \u6b63\u5728\u8bbf\u95ee\"\/home\/gues\/nothisdirectory\/nothisfile\": \u4e0d\u662f\u76ee\u5f55<\/pre>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u529f\u80fd\uff0c\u4fbf\u8fdb\u884c\u771f\u6b63\u7684\u62f7\u8d1d\u4e86\u3002\u6211\u4eec\u4e0d\u4ec5\u8981\u62f7\u8d1d\u6e90\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u8fd8\u8981\u62f7\u8d1d\u76f8\u5173\u6587\u4ef6\u5c5e\u6027\uff0c\u6bd4\u5982\u5b58\u53d6\u6743\u9650\uff0c\u7528\u6237ID\uff0c\u7528\u6237\u7ec4ID\u7b49\u3002\u4e0b\u9762\u7684\u4ee3\u7801\u4fbf\u662f\u5b9e\u73b0\u4e0a\u8ff0\u529f\u80fd\u3002\u5982\u679c\u4f60\u5b8c\u6210\u4e86my_ls\uff0c\u4e0b\u9762\u7684\u4ee3\u7801\u5e76\u4e0d\u56f0\u96be\u7406\u89e3\uff0c\u5728\u6b64\u4e0d\u5728\u8d58\u8ff0\u3002<\/p>\n<pre class=\"brush:c\">\t\/\/fistly the content which was read from srouce file will be write to dest file\r\n\tif((fdrd=open(src_path,O_RDONLY))==-1)\r\n\t{\r\n\t\tperror(\"open\");\r\n\t\texit(1);\r\n\t}\r\n\tif(lseek(fdrd,0,SEEK_END)==-1)\r\n\t{\r\n\t\tperror(\"lseek\");\r\n\t\texit(1);\r\n\t}\r\n\tif((len=lseek(fdrd,0,SEEK_CUR))==-1)\r\n\t{\r\n\t\tperror(\"lseek\");\r\n\t\texit(1);\r\n\t}\r\n\tif(lseek(fdrd,0,SEEK_SET)==-1)\r\n\t{\r\n\t\tperror(\"lseek\");\r\n\t\texit(1);\r\n\t}\r\n\t\/\/open the dest file\r\n\tif((fdwt=open(dest_path,O_CREAT|O_TRUNC|O_RDWR,S_IRWXU))==-1)\r\n\t{\r\n\t\tperror(\"open\");\r\n\t\texit(1);\r\n\t}\r\n\tclose(fdwt);\r\n\tif((fdwt=open(dest_path,O_WRONLY|O_APPEND))==-1)\r\n\t{\r\n\t\tperror(\"open\");\r\n\t\texit(1);\r\n\t}\r\n\r\n\twhile(len--&gt;\\0)\r\n\t{\r\n\t\t\/\/write all characters to dest file\r\n\t\tif(read(fdrd,ch,1)!=1)\r\n\t\t{\r\n\t\t\tperror(\"read\");\r\n\t\t\texit(1);\r\n\t\t}\r\n\t\tif(write(fdwt,ch,1)!=1)\r\n\t\t{\r\n\t\t\tperror(\"write\");\r\n\t\t\texit(1);\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t\/\/get src file's attributes\r\n\tif(fstat(fdrd,&amp;buf)==-1)\r\n\t{\r\n\t\tperror(\"fstat\");\r\n\t\texit(1);\r\n\t}\r\n\t\/\/set the dset file's access right\r\n\tif(fchmod(fdwt,buf.st_mode)==-1)\r\n\t{\r\n\t\tperror(\"fchmod\");\r\n\t\texit(1);\r\n\t}\r\n\t\/\/set file's user id and group id\r\n\tif(fchown(fdwt,buf.st_uid,buf.st_gid)==-1)\r\n\t{\r\n\t\tperror(\"fchown\");\r\n\t\texit(1);\r\n\t}\r\n\tclose(fdwt);\r\n\tclose(fdrd);<\/pre>\n<p>\u73b0\u5728\u57fa\u672c\u4e0a\u5b8c\u6210\u4e86\u6700\u57fa\u672c\u7684\u62f7\u8d1d\u529f\u80fd\u3002\u5982\u679c\u4e0a\u8ff0\u4ee3\u7801\u6709\u95ee\u9898\uff0c\u6b22\u8fce\u7559\u8a00\u6307\u6b63\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5929\u6211\u4eec\u4e3b\u8981\u4ece\u4e3b\u51fd\u6570\u5165\u624b\uff0c\u5bf9\u547d\u4ee4\u884c\u53c2\u6570\u8fdb\u884c\u5408\u6cd5\u6027\u68c0\u6d4b\uff0c\u5e76\u5f15\u5bfc\u4e3b\u7a0b\u5e8f\u8fdb\u5165\u76f8\u5e94\u7684\u5b50\u51fd\u6570\u3002\u4eca\u5929\u6211\u4eec\u8981\u5b9e\u73b0\u4e00\u4e2a\u6700\u57fa\u672c\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[108,125,107],"class_list":{"0":"post-894","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-linuxc","7":"tag-linux","9":"tag-107"},"views":6658,"_links":{"self":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts\/894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/comments?post=894"}],"version-history":[{"count":0,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts\/894\/revisions"}],"wp:attachment":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/media?parent=894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/categories?post=894"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/tags?post=894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}