{"id":1826,"date":"2023-09-21T16:19:57","date_gmt":"2023-09-21T08:19:57","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=1826"},"modified":"2023-09-21T17:00:44","modified_gmt":"2023-09-21T09:00:44","slug":"echo%e5%91%bd%e4%bb%a4-linux%e7%ae%80%e5%8d%95%e8%84%9a%e6%9c%ac%e7%bc%96%e5%86%99%e5%8f%8a%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2023\/09\/21\/echo%e5%91%bd%e4%bb%a4-linux%e7%ae%80%e5%8d%95%e8%84%9a%e6%9c%ac%e7%bc%96%e5%86%99%e5%8f%8a%e5%ba%94%e7%94%a8\/","title":{"rendered":"echo\u547d\u4ee4-Linux\u7b80\u5355\u811a\u672c\u7f16\u5199\u53ca\u5e94\u7528"},"content":{"rendered":"\n<p><strong>Echo\u5728windows\u4e0b<\/strong>\u7684\u547d\u4ee4\u7684\u8bed\u6cd5\u5f88\u7b80\u5355\u3002\u4ee5\u4e0b\u662fEcho\u547d\u4ee4\u7684\u57fa\u672c\u8bed\u6cd5\uff1a<\/p>\n\n\n\n<p>echo string<\/p>\n\n\n\n<p>\u5176\u4e2d\uff0cstring\u662f\u8981\u8f93\u51fa\u7684\u4efb\u610f\u6587\u672c\u3002Echo\u547d\u4ee4\u53ef\u4ee5\u8f93\u51fa\u4efb\u4f55\u7eaf\u6587\u672c\uff0c\u5305\u62ec\u6570\u5b57\u3001\u5b57\u6bcd\u3001\u6807\u70b9\u7b26\u53f7\u7b49\u3002<\/p>\n\n\n\n<p>\u8f93\u51fa\u8ba1\u7b97\u673a\u7528\u6237\u540d<\/p>\n\n\n\n<p>echo My Name is %username%<\/p>\n\n\n\n<p>\u8f93\u51fa\u5f53\u524d\u65f6\u95f4<\/p>\n\n\n\n<p>echo The time is %time%<\/p>\n\n\n\n<p>\u5173\u95ed\u56de\u663e\uff0c\u4e14\u4e0d\u663e\u793a\u547d\u4ee4\u884c\u672c\u8eab\uff08\u53e6\u5b58\u4e3a.bat\u8fd0\u884c\uff09<\/p>\n\n\n\n<p>@echo off<\/p>\n\n\n\n<p>echo \u8fd9\u662f\u7b2c\u4e00\u884c<\/p>\n\n\n\n<p>\u5c06\u8f93\u51fa\u91cd\u5b9a\u5411\u5230\u6587\u4ef6<\/p>\n\n\n\n<p>echo &#8220;Hello World!&#8221; &gt; d:\\output.txt<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u60f3\u8981\u5c06\u8f93\u51fa\u9644\u52a0\u5230\u73b0\u6709\u6587\u4ef6\u7684\u672b\u5c3e\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u201c&gt;&gt;\u201d\u8fd0\u7b97\u7b26\u3002<\/p>\n\n\n\n<p>echo &#8220;This is a second line!&#8221; &gt;&gt; d:\\output.txt<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>echo\u5728liunx\u4e0b\u547d\u4ee4\u7c7b\u4f3c<\/strong><\/p>\n\n\n\n<p>\u547d\u4ee4\u683c\u5f0f\uff1a<\/p>\n\n\n\n<p>echo [\u53c2\u6570] [\u5b57\u7b26\u4e32]<\/p>\n\n\n\n<p>\u5e38\u89c1\u53c2\u6570\uff1a<\/p>\n\n\n\n<p>-n\uff1a\u4e0d\u81ea\u52a8\u6362\u884c\uff0c\u8f93\u51fa\u5b57\u7b26\u4e32\u540e\u4e0d\u8ddf\u968f\u56de\u8f66\u7b26\u3002<\/p>\n\n\n\n<p><strong>-e<\/strong>\uff1a\u5141\u8bb8\u8f93\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u8f6c\u4e49\u5b57\u7b26\uff0c\u5982\u201c\\n\u201d\u8868\u793a\u6362\u884c\u7b26\u3001\u201c\\t\u201d\u8868\u793a\u5236\u8868\u7b26\u7b49\u3002\u8fd8\u6709\u4e00\u4e9b\u8f6c\u4e49\u7b26\u53ef\u4ee5\u7528-h\u67e5\u770b<\/p>\n\n\n\n<p>-E\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u660e\u786e\u7981\u6b62\u53cd\u659c\u6760\u8f6c\u4e49<\/p>\n\n\n\n<p>\u5e38\u89c1\u7528\u6cd5\uff1a<\/p>\n\n\n\n<p>1. \u8f93\u51fa\u5b57\u7b26\u4e32\uff1a<\/p>\n\n\n\n<p>echo &#8220;Hello world&#8221;<\/p>\n\n\n\n<p>2. \u8f93\u51fa\u53d8\u91cf\u503c\uff1a<\/p>\n\n\n\n<p>name=&#8221;Linux&#8221;<\/p>\n\n\n\n<p>echo &#8220;The operating system is $name&#8221;<\/p>\n\n\n\n<p>3. \u5411\u6587\u4ef6\u5199\u5165\u6587\u672c\uff1a<\/p>\n\n\n\n<p>echo &#8220;This is a test&#8221; > test.txt<\/p>\n\n\n\n<p>4. \u8f93\u51fa\u591a\u884c\u6587\u672c\uff1a<\/p>\n\n\n\n<p>echo -e &#8220;line1\\nline2\\nline3&#8221;<\/p>\n\n\n\n<p>\u6b64\u5904\u5c31\u662f\u7528-e\u53c2\u6570\u6765\u4f7f\u540e\u9762\u7684\u8f6c\u4e49\u5b57\u7b26\\n\u751f\u6548\u4e86\uff0c\u624d\u4f1a\u8f93\u51fa\u591a\u884c\uff0c<\/p>\n\n\n\n<p>echo -e &#8220;line1\\nline2\\nline3&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@server dir]# echo -e 'aaa\\bbbb'\r\naabbb\r\n\u6b64\u5904\u5c31\u662f\u7528-e\u53c2\u6570\u6765\u4f7f\u540e\u9762\u7684\u8f6c\u4e49\u5b57\u7b26\\b\u751f\u6548\u4e86,\\b\u8868\u793a\u9000\u683c\uff0c\u4e5f\u5c31\u662f\u5411\u5de6\u5220\u9664\u4e00\u4e2a\u5b57\u7b26<\/code><\/pre>\n\n\n\n<p>\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u989c\u8272\uff0c\u547d\u4ee4\uff1aecho -e &#8220;\\e[\u80cc\u666f\u989c\u8272;\u6587\u5b57\u989c\u8272;\u663e\u793a\u65b9\u5f0fm\u5b57\u7b26\u4e32\\e[0m&#8221;\u00a0,\u4e5f\u53ef\u4ee5\\033\u6765\u4ee3\u66ff\\e<\/p>\n\n\n\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n\n\n\n<p>1. \u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u7a7a\u683c\u6216\u7279\u6b8a\u5b57\u7b26\uff0c\u9700\u8981\u4f7f\u7528\u5f15\u53f7\u5c06\u5b57\u7b26\u4e32\u62ec\u8d77\u6765\uff0c\u4ee5\u907f\u514d\u88ab\u89e3\u6790\u4e3a\u547d\u4ee4\u53c2\u6570\u3002<\/p>\n\n\n\n<p>2. \u5982\u679c\u9700\u8981\u5c06\u547d\u4ee4\u7684\u6267\u884c\u7ed3\u679c\u4f5c\u4e3a\u5b57\u7b26\u4e32\u8f93\u51fa\uff0c\u5728\u547d\u4ee4\u524d\u9762\u52a0\u4e0a\u201c$\u201d\u7b26\u53f7\u5373\u53ef\uff0c\u5982\uff1a<\/p>\n\n\n\n<p>echo &#8220;The date is $(date)&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0b\u9762\u6211\u4eec\u6765\u5199\u4e00\u4e2aliunx\u4e0b\u7684\u811a\u672c \u8bbe\u5b9aens33\u7f51\u5361<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IP\uff1a192.168.1.100\/24<\/li>\n\n\n\n<li>\u7f51\u5173\uff1a192.168.1.254<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost Desktop]# vim fixip.sh \u2014\u2014\u521b\u5efa\u65b0\u7684\u6587\u4ef6\n \n  1 #!\/bin\/bash\n  2 cd \/etc\/sysconfig\/network-scripts\/\n  3 echo\n  4 echo \"DEVICE=ens33\" &gt; ifcfg-ens33\n  5 echo \"TYPE=Ethernet\" &gt;&gt; ifcfg-ens33\n  6 echo \"ONBOOT=yes\" &gt;&gt; ifcfg-ens33\n  7 echo \"BOOTPROTO=static\" &gt;&gt; ifcfg-ens33\n  8 echo \"IPADDR=192.168.1.100\" &gt;&gt; ifcfg-ens33\n  9 echo \"NATMASK=255.255.255.0\" &gt;&gt; ifcfg-ens33\n 10 echo \"GATEWAY=192.168.1.254\" &gt;&gt; ifcfg-ens33\n 11 ifdown ens33\n 12 ifup ens33\n <\/code><\/pre>\n\n\n\n<p><strong>\u6dfb\u52a0\u8fd0\u884c\u6743\u9650\uff08+x\uff09\uff1a<\/strong><\/p>\n\n\n\n<p>[root@localhost Desktop]# chmod +x fixip.sh<\/p>\n\n\n\n<p>\u6b64\u65f6ls\u6587\u4ef6\u7684\u989c\u8272\u4f1a\u7531\u767d\u8272\u53d8\u6210\u84dd\u8272<\/p>\n\n\n\n<p>\u4e0b\u9762\u6765\u6267\u884c\u547d\u4ee4<\/p>\n\n\n\n<p>[root@localhost Desktop]# .\/fixip.sh<br>.\/fixip.sh: line 2: cd: etc\/sysconfig\/network-scripts\/: No such file or directory<\/p>\n\n\n\n<p>Device &#8216;ens33&#8217; successfully disconnected.<br>Connection successfully activated (D-Bus active path: \/org\/freedesktop\/NetworkManager\/ActiveConnection\/18)<br>[root@localhost Desktop]#<\/p>\n\n\n\n<p>\u6b64\u65f6IP\u5c31\u4f1a\u8bbe\u7f6e\u597d\uff0c\u4e0b\u9762\u518d\u6765\u4f18\u5316\u4e0b\u811a\u672c\u4e3a\u4ea4\u4e92\u5f0f\u811a\u672c\uff0c\u7ed9\u53d8\u91cf\u8d4b\u503c\uff0c\u4f7f\u5176\u66f4\u52a0\u4eba\u6027\u5316<\/p>\n\n\n\n<p>\u5148\u4e86\u89e3\u4e0b\u53d8\u91cf\u8d4b\u503c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost Desktop]# A=\"hello\" \u2014\u2014\u4e3a\u53d8\u91cfA\u8d4b\u503c\n&#91;root@localhost Desktop]# echo A \nA\n&#91;root@localhost Desktop]# echo $A \u2014\u2014\u901a\u8fc7$A \u8c03\u51fa\u5b83\u6240\u8868\u793a\u7684\u503c\uff08\u5b57\u7b26\u4e32\uff09\nhello\n&#91;root@localhost Desktop]# echo \"$A world\"\nhello world\n&#91;root@localhost Desktop]# <\/code><\/pre>\n\n\n\n<p>\u518d\u6765\u4e86\u89e3\u4e0b<strong>\u5229\u7528read -p\u8f93\u5165<\/strong><\/p>\n\n\n\n<p>-p\u53c2\u6570\u5141\u8bb8\u5728read\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u6307\u5b9a\u4e00\u4e2a\u63d0\u793a\u5982\uff1a<\/p>\n\n\n\n<p>read -p &#8220;\u8f93\u5165\u7f51\u7ad9\u540d\uff1a&#8221; website<\/p>\n\n\n\n<p>echo &#8220;\u4f60\u8f93\u5165\u7684\u7f51\u7ad9\u540d\u662f $website&#8221;<\/p>\n\n\n\n<p>exit 0<\/p>\n\n\n\n<p>\u8fd0\u884c\u5e76\u6309\u63d0\u793a\u8f93\u5165 xtaa.cn<\/p>\n\n\n\n<p>\u7ed3\u679c\u4f1a\u662f:\u4f60\u8f93\u5165\u7684\u7f51\u7ad9\u540d\u662f xtaa.cn<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6240\u4ee5\u4e0a\u9762\u7684\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u4f18\u5316\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost Desktop]# vim fixip.sh\n \n  1 #!\/bin\/bash\n  2 read -p \"please input ipddr:\" IP\n  3 read -p \"please input netmask\" MASK\n  4 read -p \"please input gateway:\" WAY\n  5 cd \/etc\/sysconfig\/network-scripts\/\n  6 echo\n  7 echo \"DEVICE=ens33\" &gt; ifcfg-ens33\n  8 echo \"TYPE=Ethernet\" &gt;&gt; ifcfg-ens33\n  9 echo \"ONBOOT=yes\" &gt;&gt; ifcfg-ens33\n 10 echo \"BOOTPROTO=static\" &gt;&gt; ifcfg-ens33\n 11 echo \"IPADDR=$IP\" &gt;&gt; ifcfg-ens33\n 12 echo \"NATMASK=$MASK\" &gt;&gt; ifcfg-ens33\n 13 echo \"GATEWAY=$WAY\" &gt;&gt; ifcfg-ens33\n 14 ifdown ens33\n 15 ifup ens33<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u4e0b\u9762\u8fdb\u4e00\u6b65\u5b66\u4e60If\u8bed\u53e5<\/strong><\/p>\n\n\n\n<p>Linux \u4e2d \u5927\u4e8e\uff1a -gt \u5c0f\u4e8e\uff1a -lt \u7b49\u4e8e\uff1a -eq\u00a0<\/p>\n\n\n\n<p><strong>\u2014\u2014\u2014\u2014\u5355\u5206\u652f\u2014\u2014\u5224\u65ad3\u662f\u5426\u5c0f\u4e8e5\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost Desktop]# vim if.sh\r\n \r\n  1 #!\/bin\/bash\r\n  2 if &#91; 3 -lt 5 ]\r\n  3 then echo \"yes\"\r\n  4 fi\r\n&#91;root@localhost Desktop]# chmod +x if.sh\r\n&#91;root@localhost Desktop]# .\/if.sh\r\nyes<\/code><\/pre>\n\n\n\n<p><strong>\u2014\u591a\u5206\u652f\u8bed\u53e5\uff1a\u5229\u7528\u8f93\u5165\u53d8\u91cf\u5224\u65ad<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost Desktop]# vim if.sh\r\n \r\n  1 #!\/bin\/bash\r\n  2 read -p \"please input a num:\" NUM\r\n  3 if &#91; $NUM -lt 5 ]\r\n  4 then echo \"lt\"\r\n  5 elif &#91; $NUM -eq 10 ]\r\n  6 then echo \"eq\" \r\n  7 else echo \"gt\"\r\n  8 fi\r\n&#91;root@localhost Desktop]# .\/if.sh\r\nplease input a num:10\r\neq\r\n&#91;root@localhost Desktop]# .\/if.sh\r\nplease input a num:30\r\ngt\r\n&#91;root@localhost Desktop]# .\/if.sh\r\nplease input a num:5\r\ngt<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6700\u540e\u5199\u4e00\u4e2a\u811a\u672c\u6765<strong>\u68c0\u6d4b\u5185\u7f51\u4e3b\u673a\u5b58\u6d3b\u72b6\u6001\uff08\u8bed\u53e5\uff1aif+for+while\uff09<\/strong><\/p>\n\n\n\n<p>\u5148\u6765\u770b\u4e0bping \u64cd\u4f5c\u7684\u4fee\u9970\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>-c \u6307\u5b9a\u5176\u53d1\u9001\u51e0\u4e2a\u5305<\/li>\n\n\n\n<li>-i \u53d1\u95f4\u9694\u65f6\u95f4<\/li>\n\n\n\n<li>-w \u7b49\u5f85\u54cd\u5e94\u65f6\u95f4<\/li>\n\n\n\n<li>&amp;&gt; \u6587\u4ef6 \u5c06\u524d\u9762\u7684\u8f93\u51fa\u7ed3\u679c\u5bfc\u5165\u5230\u522b\u7684\u5730\u65b9\uff08\u6211\u4eec\u8981\u5c06\u5176\u8f93\u51fa\u7684\u7ed3\u679c\u4e0d\u663e\u793a\uff09<\/li>\n<\/ul>\n\n\n\n<p>ping -c2 -i0.2 -w2 12.34.56.78 &amp;> \/dev\/null<\/p>\n\n\n\n<p>\u597d\uff0c\u63a5\u4e0b\u6765\u6765ping\u5355\u4e2a\u4e3b\u673a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost poem]# vim ping.sh \u2014\u2014\u521b\u5efa\u7f16\u5199\u6587\u4ef6\r\n  1 #!\/bin\/bash\r\n  2 if `ping -c2 -i0.2 -w2 192.168.123.124 &amp;> \/dev\/null`\r\n  3 then echo \"yes\"\r\n  4 else echo \"no\"\r\n  5 fi  \r\n&#91;root@localhost poem]# chmod +x ping.sh \u2014\u2014\u8d4b\u6743\r\n&#91;root@localhost poem]# .\/ping.sh \u2014\u2014\u6267\u884c\r\nno \u2014\u2014\u8f93\u51fa\u7ed3\u679c\r\n&#91;root@localhost poem]# <\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\u7ed3\u679c\u4e3a no \uff0c\u8868\u793a\u8be5\u4e3b\u673a\u4e0d\u5b58\u5728\u6216\u672a\u5f00\u542f\uff08\u672a\u5b58\u6d3b\uff09<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u60f3IP\u7531\u6211\u8f93\u5165 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  1 #!\/bin\/bash\r\n  2 read -p \"please input ipaddr:\" IP\r\n  3 if `ping -c2 -i0.2 -w2 $IP &amp;> \/dev\/null`\r\n  4 then echo \"yes\"\r\n  5 else echo \"no\"\r\n  6 fi<\/code><\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u60f3\u8981\u626b\u63cf\u6574\u4e2a\u7f51\u6bb5\u8981\u7528\u5230for\u6216\u8005while<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>for \u6839\u636e\u5faa\u73af\u7684\u6b21\u6570\uff08\u53d6\u503c\u5217\u8868\uff09<\/li>\n\n\n\n<li>\u5faa\u73af while \u6839\u636e\u6761\u4ef6\u5faa\u73af<\/li>\n<\/ul>\n\n\n\n<p>for\u7528\u6cd5\u4e3a: <\/p>\n\n\n\n<p>for   \u53d8\u91cf  in \u53d6\u503c\u5217\u8868<\/p>\n\n\n\n<p>do<\/p>\n\n\n\n<p>\u5b50\u8bed\u53e5<\/p>\n\n\n\n<p>done<\/p>\n\n\n\n<p>while\u7528\u6cd5\u4e3a\uff1a<\/p>\n\n\n\n<p>while   \u6761\u4ef6<\/p>\n\n\n\n<p>do<\/p>\n\n\n\n<p>\u5b50\u8bed\u53e5<\/p>\n\n\n\n<p>done<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0b\u9762\u7528for\u6765\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost poem]# vim ping.sh\r\n  1 #!\/bin\/bash\r\n  2 NET=10.168.1.\r\n  3 for IP in {100..115}\r\n  4 do\r\n  5   if `ping -c2 -i0.2 -w2 $NET$IP &amp;> \/dev\/null`\r\n  6   then echo -e \"$NET$IP is \\033&#91;31mup\\033&#91;0m\" \uff08\u4fee\u6539\u8f93\u51fa\u989c\u8272\uff09\r\n  7   else echo -e \"$NET$IP is \\033&#91;32mdown\\033&#91;0m\" \uff08\u4fee\u6539\u8f93\u51fa\u989c\u8272\uff09\r\n  8   fi\r\n  9 done<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u7528\u4e8e\u7f51\u7edc\u55c5\u63a2<\/p>\n\n\n\n<p>\u7528whilt\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost poem]# vim ping.sh\r\n  1 #!\/bin\/bash\r\n  2 NET=10.168.1.\r\n  3 IP=100\r\n  4 while &#91; $IP -lt 115 ]\r\n  5 do\r\n  6   let IP++\r\n  7   if `ping -c2 -i0.2 -w2 $NET$IP &amp;> \/dev\/null`\r\n  8   then echo -e \"$NET$IP is \\033&#91;31mup\\033&#91;0m\"\r\n  9   else echo -e \"$NET$IP is \\033&#91;32mdown\\033&#91;0m\"\r\n 10   fi\r\n 11 done<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Echo\u5728windows\u4e0b\u7684\u547d\u4ee4\u7684\u8bed\u6cd5\u5f88\u7b80\u5355\u3002\u4ee5\u4e0b\u662fEcho\u547d\u4ee4\u7684\u57fa\u672c\u8bed\u6cd5\uff1a echo string \u5176\u4e2d\uff0cs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-1826","post","type-post","status-publish","format-standard","hentry","category-22"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1826"}],"version-history":[{"count":3,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1826\/revisions"}],"predecessor-version":[{"id":1831,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1826\/revisions\/1831"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1826"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}