{"id":199592,"date":"2020-09-05T10:08:44","date_gmt":"2020-09-05T02:08:44","guid":{"rendered":"https:\/\/gulass.cn\/?p=199592"},"modified":"2020-08-28T10:09:40","modified_gmt":"2020-08-28T02:09:40","slug":"sed-delete","status":"publish","type":"post","link":"https:\/\/gulass.cn\/sed-delete.html","title":{"rendered":"\u8fd0\u7528sed\u547d\u4ee4\u9ad8\u6548\u5730\u5220\u9664\u6587\u4ef6\u7684\u7279\u5b9a\u884c"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6b63\u5e38\u6765\u8bf4\uff0c\u6211\u4eec\u60f3\u8981\u5220\u9664\u6587\u4ef6\u4e2d\u7684\u67d0\u4e9b\u884c\u5185\u5bb9\uff0c\u4e00\u822c\u90fd\u662f\u5148\u6253\u5f00\u8fd9\u4e2a\u6587\u4ef6\uff0c\u7136\u540e\u627e\u5230\u8981\u5220\u9664\u7684\u5185\u5bb9\uff0c\u518d\u7136\u540e\u9009\u4e2d\u8fd9\u4e9b\u884c\u5e76\u6309\u5220\u9664\u952e\u8fdb\u884c\u5220\u9664\uff0c\u8fd9\u5728\u6570\u636e\u91cf\u5f88\u5c11\u65f6\u662f\u6ca1\u6709\u95ee\u9898\u7684\u3002\u4f46\u662f\uff0c\u4e00\u65e6\u6587\u4ef6\u4e2d\u7684\u884c\u6570\u636e\u975e\u5e38\u591a\uff0c\u800c\u4e14\u6570\u636e\u5197\u6742\u7684\u60c5\u51b5\u4e0b\uff0c\u4f60\u8fd8\u8981\u7528\u4e0a\u9762\u7684\u65b9\u6cd5\u53bb\u505a\u7684\u8bdd\u5c31\u5f88\u6050\u6016\u4e86\u3002\u4e3a\u6b64\uff0c\u4eca\u5929\u8fd9\u7bc7\u6587\u7ae0\u5c06\u5e26\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fd0\u7528 sed \u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5373\u4f7f\u5728\u6570\u636e\u591a\u800c\u6742\u7684\u60c5\u51b5\u4e0b\u4e5f\u80fd\u9ad8\u6548\u800c\u4f18\u96c5\u5730\u5220\u9664\u6587\u4ef6\u4e2d\u7684\u7279\u5b9a\u884c\u5185\u5bb9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"
\ned \u662f Stream Editor \u7684\u7b80\u5199\uff0c\u5b83\u7528\u4e8e\u5728 Linux \u4e2d\u8fdb\u884c\u57fa\u672c\u7684\u6587\u672c\u8f6c\u6362\uff0c\u662f\u6587\u4ef6\u64cd\u4f5c\u7684\u4e00\u4e2a\u91cd\u8981\u547d\u4ee4\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u7528\u5b83\u6765\u5b9e\u73b0\u6587\u672c\u7684\u5220\u9664\u64cd\u4f5c\u3002<\/p>\n

\u4e0b\u9762\u662f\u4e00\u4e9b sed \u547d\u4ee4\u7684\u4f7f\u7528\u793a\u4f8b\uff0c\u8986\u76d6\u4e86\u5927\u591a\u6570\u7684\u4f7f\u7528\u573a\u666f\uff0c\u7531\u6d45\u5165\u6df1\u5730\u5e2e\u52a9\u4f60\u5b66\u4e60 sed \u547d\u4ee4\uff0c\u8ba9\u4f60\u8f7b\u677e\u5730\u5b9e\u73b0\u9ad8\u6548\u5220\u9664\u6587\u4ef6\u7684\u7279\u5b9a\u884c\u5185\u5bb9\u3002<\/p>\n

\u9996\u5148\u6211\u4eec\u51c6\u5907\u4e00\u4e2a\u6f14\u793a\u6587\u4ef6 sed-demo.txt<\/p>\n

# cat sed-demo.txt\r\n\r\n1 Linux Operating System\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u8fd0\u7528 sed \u547d\u4ee4\u8fdb\u884c\u5b9e\u9a8c\u4e86\u3002<\/p>\n

1. \u5220\u9664\u67d0\u4e00\u884c<\/strong><\/div>\n

\u9996\u5148\uff0c\u6211\u4eec\u5148\u4ece\u5220\u9664\u67d0\u4e00\u884c\u5f00\u59cb\uff0c\u6bd4\u5982\u5220\u9664\u7b2c\u4e00\u884c\u3001\u6700\u540e\u4e00\u884c\uff0c\u5b9e\u9645\u4e5f\u5c31\u662f\u7b2c N \u884c\u561b\u3002<\/p>\n

\u5220\u9664\u7b2c N \u884c\u7684\u547d\u4ee4\u683c\u5f0f\uff1a<\/p>\n

sed 'Nd' file\r\n\u6211\u4eec\u6765\u5220\u9664\u7b2c\u4e00\u884c\u8bd5\u8bd5\uff1a\r\n\r\n# sed '1d' sed-demo.txt\r\n\r\nAfter deletion:\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u5f88\u7b80\u5355\u662f\u5427\uff1f\u8fd9\u91cc\u5c31\u4e0d\u591a\u4f5c\u89e3\u91ca\u4e86\uff0c\u4f60\u60f3\u8981\u5220\u9664\u7b2c\u51e0\u884c\u7684\u5185\u5bb9\u53ea\u9700\u8981\u628a\u547d\u4ee4\u4e2d\u7684 1 \u66ff\u6362\u4e00\u4e0b\u5c31 ok \u4e86\u3002<\/p>\n

\u90a3\u95ee\u9898\u6765\u4e86\uff0c\u6700\u540e\u4e00\u884c\u7528\u4ec0\u4e48\u6570\u5b57\u8868\u793a\u5462\uff1f\u8fd9\u91cc\u7ed9\u5927\u5bb6\u4e00\u4e2a\u5c0f\u63d0\u793a\uff0c\u53ef\u4ee5\u7528\u7f8e\u5143\u7b26\u53f7 $ \u8868\u793a\u6700\u540e\uff0c\u6240\u4ee5\u5220\u9664\u6700\u540e\u4e00\u884c\u7684\u547d\u4ee4\u53ef\u4ee5\u8fd9\u4e48\u5199\uff1a<\/p>\n

# sed '$d' sed-demo.txt\r\n\r\nAfter deletion:\r\n1 Linux Operating System\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu<\/pre>\n
2. \u5220\u9664\u67d0\u4e9b\u884c<\/strong><\/div>\n

sed \u547d\u4ee4\u53ef\u4ee5\u5220\u9664\u8fde\u7eed\u53c8\u6216\u8005\u4e0d\u8fde\u7eed\u7684\u884c\u5185\u5bb9\u3002<\/p>\n

\u5220\u9664\u8fde\u7eed\u7684\u884c\uff0c\u4f8b\u5982\u5220\u9664\u4ece 5 \u5230 7 \u884c \u7684\u5185\u5bb9\uff1a<\/p>\n

# sed '5,7d' sed-demo.txt\r\n\r\nAfter deletion:\r\n1 Linux Operating System\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u5220\u9664\u4e0d\u8fde\u7eed\u7684\u884c\uff0c\u4f8b\u5982\u5220\u9664\u7b2c 1 \u3001\u7b2c 5 \u3001\u7b2c 9 \u548c\u6700\u540e\u4e00\u884c\uff1a<\/p>\n

# sed '1d;5d;9d;$d' sed-demo.txt\r\n\r\nAfter deletion:\r\n\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian<\/pre>\n

\u53e6\u5916\uff0c\u5b83\u8fd8\u53ef\u4ee5\u914d\u5408\u903b\u8f91\u975e ! \u4f7f\u7528\uff0c\u6bd4\u5982\u5220\u9664\u7b2c 3\u5230 6 \u884c\u4ee5\u5916\u7684\u5176\u4ed6\u884c\uff1a<\/p>\n

# sed '3,6!d' sed-demo.txt\r\n\r\nAfter deletion:\r\n\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux<\/pre>\n
3. \u5220\u9664\u7a7a\u767d\u884c<\/strong><\/div>\n

sed \u8fd8\u652f\u6301\u5220\u9664\u6587\u4ef6\u7684\u7a7a\u767d\u884c\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

# sed '\/^$\/d' sed-demo.txt\r\n\r\nAfter deletion:\r\n\r\n1 Linux Operating System\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u63d0\u793a\uff1a\u8fd9\u91cc\u4e24\u4e2a\u659c\u6760 \/ \/ \u5185\u7684\u8868\u8fbe\u5f0f\u8d77\u5230\u4e86\u6587\u672c\u5339\u914d\u7684\u4f5c\u7528\uff0c\u5927\u5bb6\u53ef\u4ee5\u53c2\u8003\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4f7f\u7528\u65b9\u6cd5\u3002\u4e0b\u9762\u5c06\u5217\u4e3e\u4e00\u4e9b\u5e38\u7528\u7684\u65b9\u6cd5\u6765\u52a0\u6df1\u5927\u5bb6\u7684\u5b66\u4e60\u3002<\/p>\n

4. \u5220\u9664\u5305\u542b\u7279\u5b9a\u5b57\u7b26\u7684\u884c<\/strong><\/div>\n

\u5047\u8bbe\u6211\u4eec\u60f3\u8981\u5220\u9664\u793a\u4f8b\u6587\u4ef6\u4e2d\u7684\u5305\u542b System \u8fd9\u4e2a\u5355\u8bcd\u7684\u884c\u5185\u5bb9\uff0c\u6211\u4eec\u53ef\u4ee5\u7528 \/System\/\uff0c\u5b83\u8868\u793a\u6709\u51fa\u73b0 System \u8fd9\u4e2a\u5b57\u7b26\u4e32\u5c31\u8fdb\u884c\u5339\u914d\uff0c\u5177\u4f53\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

# sed '\/System\/d' sed-demo.txt\r\n\r\nAfter deletion:\r\n\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u4e0d\u4ec5\u5982\u6b64\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u52a0\u4e0a\u4e00\u4e0b\u903b\u8f91\u6761\u4ef6\uff0c\u6bd4\u65b9\u8bf4\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

# sed '\/System\\|Linux\/d' sed-demo.txt\r\n\r\nAfter deletion:\r\n\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u7b26\u53f7 \\| \u4ee3\u8868\u903b\u8f91\u6216\uff0c\u4e0a\u8ff0\u547d\u4ee4\u7684\u610f\u601d\u662f\u6587\u672c\u4e2d\u6709 System \u6216 Linux \u7684\u884c\u90fd\u8981\u8fdb\u884c\u5220\u9664\u3002<\/p>\n

5. \u5220\u9664\u7279\u5b9a\u5b57\u7b26\u5f00\u5934\u7684\u884c<\/strong><\/div>\n

\u9996\u5148\uff0c\u6211\u4eec\u521b\u5efa\u53e6\u4e00\u4e2a\u793a\u4f8b\u6587\u4ef6 sed-demo-1.txt \u8fdb\u884c\u66f4\u597d\u5730\u6f14\u793a\uff0c\u5176\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n

# cat sed-demo-1.txt\r\n\r\nAfter deletion:\r\nLinux Operating System\r\nUnix Operating System\r\nRHEL\r\nRed Hat\r\nFedora\r\ndebian\r\nubuntu\r\nArch Linux - 1\r\n2 - Manjaro\r\n3 4 5 6<\/pre>\n

\u4e0a\u9762\u4e5f\u5df2\u7ecf\u63d0\u5230\u8fc7\uff0c$ \u53f7\u53ef\u4ee5\u7406\u89e3\u4e3a\u7ed3\u5c3e\uff0c\u90a3\u4e48\u6709\u6ca1\u6709\u5b57\u7b26\u53ef\u4ee5\u4ee3\u8868\u5f00\u5934\u5462\uff1f\u7b54\u6848\u662f\u6709\u7684\uff0c\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u7528 ^ \u53f7\u4ee3\u8868\u5f00\u5934\u3002<\/p>\n

\u90a3\u4e48\uff0c\u6211\u4eec\u60f3\u8981\u5220\u9664\u4ee5\u67d0\u4e00\u4e2a\u5b57\u7b26\u5f00\u5934\u7684\u884c\u65f6\uff0c\u6bd4\u5982\u8bf4\u5220\u9664\u4ee5 R \u5f00\u5934\u7684\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n

# sed '\/^R\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\nLinux Operating System\r\nUnix Operating System\r\nFedora\r\ndebian\r\nubuntu\r\nArch Linux - 1\r\n2 - Manjaro\r\n3 4 5 6<\/pre>\n

\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff0c\u6bd4\u5982\u6211\u60f3\u5220\u9664\u4ee5 R \u6216\u8005 F \u5f00\u5934\u7684\u884c\uff0c\u90a3\u6211\u662f\u4e0d\u662f\u8981\u6267\u884c\u4e24\u6b21\u547d\u4ee4\u5462\uff1f\u5982\u679c\u662f\u6709\u66f4\u591a\u5c82\u4e0d\u662f\u8981\u6267\u884c\u591a\u6b21\u547d\u4ee4\uff1f\u8fd9\u91cc\u5b83\u6709\u4e00\u4e2a\u7b80\u5355\u7684\u5199\u6cd5\uff0c\u4f60\u53ea\u8981\u628a\u8fd9\u4e9b\u5b57\u7b26\u5199\u5728\u4e00\u5bf9\u4e2d\u62ec\u53f7 [] \u91cc\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n

# sed '\/^[RF]\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\nLinux Operating System\r\nUnix Operating System\r\ndebian\r\nubuntu\r\nArch Linux - 1\r\n2 - Manjaro\r\n3 4 5 6<\/pre>\n

\u4e0a\u9762\u547d\u4ee4\u7684\u4f5c\u7528\u662f \u5220\u9664\u4ee5 R \u6216\u8005 F \u5f00\u5934\u7684\u884c\u3002<\/p>\n

6. \u5220\u9664\u7279\u5b9a\u5b57\u7b26\u7ed3\u5c3e\u7684\u884c<\/strong><\/div>\n

\u540c\u4e0a\u9762\u4e00\u4e2a\u9053\u7406\uff0c\u5220\u9664\u4ee5\u67d0\u4e00\u4e2a\u5b57\u7b26\u7ed3\u5c3e\u7684\u884c\uff0c\u6bd4\u65b9\u8bf4\u5220\u9664\u4ee5 m \u7ed3\u5c3e\u7684\u884c\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n

# sed '\/m$\/d' sed-demo.txt\r\n\r\nAfter deletion:\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u5220\u9664\u4ee5 x \u6216 m \u7ed3\u5c3e\u7684\u884c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<\/p>\n

# sed '\/[xm]$\/d' sed-demo.txt\r\n\r\nAfter deletion:\r\n\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n
7. \u5220\u9664\u4ee5\u5927\u5199\u5b57\u6bcd\u5f00\u5934\u7684\u884c<\/strong><\/div>\n

\u8fd9\u91cc\u95ee\u9898\u53c8\u6765\u4e86\uff0c\u6211\u60f3\u8981\u5220\u9664\u6240\u6709\u4ee5\u5927\u5199\u5b57\u6bcd\u5f00\u5934\u7684\u884c\u5462\uff1f\u6309\u7167\u4e0a\u9762\u7684\u505a\u6cd5\u662f\u4e0d\u662f\u8981\u5c06 A \u5230 Z \u8fd9 26 \u4e2a\u5b57\u6bcd\u90fd\u5199\u8fdb [ ] \u91cc\u5462\uff1f\u5176\u5b9e\u6211\u4eec\u5927\u53ef\u4e0d\u5fc5\u8fd9\u6837\u505a\uff0c\u5728 A \u548c Z \u4e2d\u95f4\u52a0\u4e2a - \u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n

# sed '\/^[A-Z]\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\ndebian\r\nubuntu\r\n2 - Manjaro\r\n3 4 5 6\r\n\u673a\u667a\u7684\u4f60\u770b\u5230\u8fd9\u91cc\u80af\u5b9a\u4f1a\u60f3\u5230\u5176\u4ed6\u7c7b\u4f3c\u7684\u7528\u6cd5\u7684\u4e86\uff0c\u4e0d\u59a8\u770b\u770b\u4e0b\u9762\u662f\u5426\u6709\u4f60\u60f3\u5230\u7684\u547d\u4ee4\u5427\u3002\r\n<\/pre>\n
8. \u5220\u9664\u5305\u542b\u5b57\u6bcd\u5b57\u7b26\u7684\u884c<\/strong><\/div>\n
# sed '\/[A-Za-z]\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\n3 4 5 6<\/pre>\n
9. \u5220\u9664\u5305\u542b\u6570\u5b57\u7684\u884c<\/strong><\/div>\n
# sed '\/[0-9]\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\n\r\nLinux Operating System\r\nUnix Operating System\r\nRHEL\r\nRed Hat\r\nFedora\r\ndebian\r\nubuntu<\/pre>\n

\u53e6\u5916\uff0c\u901a\u8fc7\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u6211\u4eec\u53ef\u4ee5\u52a0\u4e0a ^ \u548c $ \u66f4\u597d\u5730\u770b\u5230\u4ed6\u4eec\u4e09\u4e2a\u4e4b\u95f4\u7684\u533a\u522b\uff1a<\/p>\n

# sed '\/^[0-9]\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\n\r\nLinux Operating System\r\nUnix Operating System\r\nRHEL\r\nRed Hat\r\nFedora\r\ndebian\r\nubuntu\r\nArch Linux - 1\r\n# sed '\/[0-9]$\/d' sed-demo-1.txt\r\n\r\nAfter deletion:\r\n\r\nLinux Operating System\r\nUnix Operating System\r\nRHEL\r\nRed Hat\r\nFedora\r\ndebian\r\nubuntu\r\n2 - Manjaro<\/pre>\n
10. \u5176\u4ed6\u66f4\u591a<\/strong><\/div>\n

\u5b9e\u9645\u4e0a\uff0c\u6211\u4eec\u8981\u5220\u9664\u7684\u6587\u4ef6\u5185\u5bb9\u662f\u66f4\u4e3a\u5177\u4f53\u7684\uff0c\u7b80\u5355\u7684\u6761\u4ef6\u662f\u6ee1\u8db3\u4e0d\u4e86\u6211\u4eec\u7684\u9700\u6c42\u7684\uff0c\u6240\u4ee5\uff0csed \u4e5f\u652f\u6301\u66f4\u590d\u6742\u7684\u6761\u4ef6\u7ec4\u5408\u3002\u6bd4\u65b9\u8bf4\u6211\u8981\u6307\u5b9a\u5220\u9664\u5728 1 \u5230 6 \u884c\u5185\u6709 Linux \u8fd9\u4e2a\u8bcd\u7684\u5185\u5bb9\uff0c\u90a3\u4e48\uff1a<\/p>\n

# sed '1,6{\/Linux\/d;}' sed-demo.txt\r\n\r\nAfter deletion:\r\n2 Unix Operating System\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n

\u5220\u9664\u5305\u542b System \u4ee5\u53ca\u5176\u4e0b\u4e00\u884c\u7684\u5185\u5bb9\uff1a<\/p>\n

# sed '\/System\/{N;d;}' sed-demo.txt\r\n\r\nAfter deletion:\r\n3 RHEL\r\n4 Red Hat\r\n5 Fedora\r\n6 Arch Linux\r\n7 CentOS\r\n8 Debian\r\n9 Ubuntu\r\n10 openSUSE<\/pre>\n","protected":false},"excerpt":{"rendered":"

ed \u662f Stream Editor \u7684\u7b80\u5199\uff0c\u5b83\u7528\u4e8e\u5728 Linux \u4e2d\u8fdb\u884c\u57fa\u672c\u7684\u6587\u672c\u8f6c\u6362\uff0c\u662f\u6587\u4ef6\u64cd\u4f5c\u7684\u4e00\u4e2a\u91cd\u8981 […]<\/p>\n","protected":false},"author":1469,"featured_media":199600,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-199592","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/199592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=199592"}],"version-history":[{"count":10,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/199592\/revisions"}],"predecessor-version":[{"id":199612,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/199592\/revisions\/199612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/199600"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=199592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=199592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=199592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}