{"id":15895,"date":"2023-12-27T10:46:46","date_gmt":"2023-12-27T02:46:46","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=15895"},"modified":"2024-09-10T10:31:32","modified_gmt":"2024-09-10T02:31:32","slug":"array","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2023\/12\/27\/array\/","title":{"rendered":"shell\u6570\u7ec4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">shell\u4e5f\u662f\u652f\u6301\u6570\u7ec4\u7684\uff0c\u53ef\u4ee5\u58f0\u660e\u666e\u901a\u7d22\u5f15\u6570\u7ec4\u548c\u5173\u8054\u6570\u7ec4\uff0c\u533a\u522b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u666e\u901a\u7d22\u5f15\u6570\u7ec4\u76f4\u63a5\u4f7f\u7528array=()\u58f0\u660e\u5373\u53ef\uff0c\u5e76\u4e14\u7d22\u5f15\u4ece0\u5f00\u59cb\uff0c\u4e0d\u80fd\u4f7f\u7528\u5b57\u7b26\u4e32\u4f5c\u4e3a\u7d22\u5f15\uff0c\u5143\u7d20\u6709\u5e8f<\/li>\n\n\n\n<li>\u5173\u8054\u6570\u7ec4\u4f7f\u7528declare -A array=()\u58f0\u660e\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u3001\u5b57\u6bcd\u3001\u4e0b\u5212\u7ebf\u7b49\u4f5c\u4e3a\u7d22\u5f15\uff0c\u952e\u552f\u4e00<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u5b9a\u4e49\u67095\u4e2a\u5143\u7d20\u7684<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u666e\u901a\u7d22\u5f15\u6570\u7ec4<\/mark><\/strong>\uff0c\u5e76\u6253\u5370\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"149\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5.jpg\" alt=\"\" class=\"wp-image-15902\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5.jpg 700w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5-300x64.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5-600x128.jpg 600w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"120\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/6.jpg\" alt=\"\" class=\"wp-image-15903\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/6.jpg 700w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/6-300x51.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/6-600x103.jpg 600w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u4f7f\u7528declare\u547d\u4ee4\u6765\u58f0\u660e\u4e00\u4e2a\u5173\u8054\u6570\u7ec4\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"157\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/6.jpg\" alt=\"\" class=\"wp-image-17602\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/6.jpg 699w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/6-300x67.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/6-600x135.jpg 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"80\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/7.jpg\" alt=\"\" class=\"wp-image-17603\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/7.jpg 696w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/7-300x34.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/7-600x69.jpg 600w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u4f7f\u7528&#8221;*&#8221;\u8f93\u51fa\u6570\u7ec4\u5168\u90e8\u5143\u7d20\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"84\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-1.jpg\" alt=\"\" class=\"wp-image-15905\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-1.jpg 697w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-1-300x36.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-1-600x72.jpg 600w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"75\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-1.jpg\" alt=\"\" class=\"wp-image-15906\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-1.jpg 697w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-1-300x32.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-1-600x65.jpg 600w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1a&#8221;*&#8221; \u4e5f\u53ef\u4ee5\u4f7f\u7528&#8221;@&#8221;\u6765\u4ee3\u66ff\uff0c\u4f46\u662f&#8221;*&#8221;\u548c&#8221;@&#8221; \u8fd8\u662f\u6709\u4e00\u4e9b\u533a\u522b\u7684\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>*<\/code>\uff08\u661f\u53f7\uff09<\/strong>\uff1a\u5b83\u4f1a\u5c06\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u5143\u7d20\u6269\u5c55\u4e3a\u4e00\u4e2a\u8fde\u7eed\u7684\u5b57\u7b26\u4e32\uff0c\u5143\u7d20\u4e4b\u95f4\u7531\u7b2c\u4e00\u4e2a\u5b57\u7b26\uff08\u901a\u5e38\u662f\u7a7a\u683c\u6216 IFS\uff08\u5185\u90e8\u5b57\u6bb5\u5206\u9694\u7b26\uff09\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\uff09\u5206\u9694<\/li>\n\n\n\n<li><strong><code>@<\/code>\uff08at \u7b26\u53f7\uff09<\/strong>\uff1a\u5b83\u4f1a\u5c06\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u4f5c\u4e3a\u72ec\u7acb\u7684\u5355\u8bcd\u6269\u5c55\uff0c\u5143\u7d20\u4e4b\u95f4\u7531 IFS \u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5206\u9694\u3002\u5982\u679c IFS \u4e3a\u7a7a\uff0c\u5219\u5143\u7d20\u4e4b\u95f4\u7531\u7a7a\u683c\u5206\u9694<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"127\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/3.jpg\" alt=\"\" class=\"wp-image-17597\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/3.jpg 699w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/3-300x55.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/3-600x109.jpg 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u5728 <code>for<\/code> \u5faa\u73af\u4e2d\u904d\u5386\u6570\u7ec4\u65f6\uff0c\u901a\u5e38\u4f7f\u7528 <code>@<\/code>\uff0c\u56e0\u4e3a\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6bcf\u4e2a\u6570\u7ec4\u5143\u7d20\u90fd\u88ab\u5355\u72ec\u5904\u7406\uff0c\u5c24\u5176\u662f\u5728\u6570\u7ec4\u5143\u7d20\u4e2d\u5305\u542b\u7a7a\u683c\u6216\u7279\u6b8a\u5b57\u7b26\u65f6\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"129\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/4.jpg\" alt=\"\" class=\"wp-image-17599\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/4.jpg 699w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/4-300x55.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/4-600x111.jpg 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"120\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/5.jpg\" alt=\"\" class=\"wp-image-17600\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/5.jpg 699w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/5-300x52.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/09\/5-600x103.jpg 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u83b7\u53d6\u6570\u7ec4\u7684\u957f\u5ea6\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"88\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5-1.jpg\" alt=\"\" class=\"wp-image-15912\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5-1.jpg 698w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5-1-300x38.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/5-1-600x76.jpg 600w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"73\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-3.jpg\" alt=\"\" class=\"wp-image-15929\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-3.jpg 698w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-3-300x31.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-3-600x63.jpg 600w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1a\u5982\u679c\u83b7\u53d6\u67d0\u4e00\u4e2a\u5143\u7d20\u7684\u957f\u5ea6\uff0c\u53ea\u9700\u8981\u5c06 &#8220;*&#8221; \u6539\u4e3a\u5bf9\u5e94\u5143\u7d20\u7684\u4e0b\u6807\u5373\u53ef<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u4fee\u6539\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"110\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/7.jpg\" alt=\"\" class=\"wp-image-15914\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/7.jpg 700w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/7-300x47.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/7-600x94.jpg 600w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"83\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/8.jpg\" alt=\"\" class=\"wp-image-15915\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/8.jpg 697w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/8-300x36.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/8-600x71.jpg 600w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6\u3001\u5220\u9664\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\uff0c\u4f7f\u7528unset\u547d\u4ee4\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"129\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/9.jpg\" alt=\"\" class=\"wp-image-15917\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/9.jpg 699w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/9-300x55.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/9-600x111.jpg 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"79\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/10.jpg\" alt=\"\" class=\"wp-image-15918\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/10.jpg 697w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/10-300x34.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/10-600x68.jpg 600w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1aunset\u540e\u5982\u679c\u4e0d\u5199\u6570\u7ec4\u4e0b\u6807\uff0c\u90a3\u4e48\u5220\u9664\u7684\u662f\u6570\u7ec4\u4e2d\u7684\u5168\u90e8\u5143\u7d20<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7\u3001\u5411\u6570\u7ec4\u4e2d\u6dfb\u52a0\u5143\u7d20\uff0c\u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e00\u79cd\u662f\u4f7f\u7528+=\u6765\u76f4\u63a5\u5411\u6570\u7ec4\u672b\u5c3e\u8ffd\u52a0\u5143\u7d20\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"83\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/11.jpg\" alt=\"\" class=\"wp-image-15920\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/11.jpg 699w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/11-300x36.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/11-600x71.jpg 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"51\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-2.jpg\" alt=\"\" class=\"wp-image-15921\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-2.jpg 701w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-2-300x22.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-2-600x44.jpg 600w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1ashell\u6570\u7ec4\u4e2d\u5143\u7d20\u4e0d\u4e00\u5b9a\u90fd\u662f\u4e00\u79cd\u7c7b\u578b\uff0c\u53ef\u4ee5\u6709\u6574\u578b\uff0c\u4e5f\u53ef\u4ee5\u6709\u5b57\u7b26\u4e32<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\u79cd\u662f\u4f7f\u7528\u6570\u7ec4\u4e0b\u6807\u6765\u5411\u6570\u7ec4\u4e2d\u6dfb\u52a0\u5143\u7d20\uff0c\u4f46\u662f\u524d\u63d0\u8981\u77e5\u9053\u5f53\u524d\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u4e2a\u6570\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"84\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-2.jpg\" alt=\"\" class=\"wp-image-15923\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-2.jpg 697w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-2-300x36.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-2-600x72.jpg 600w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"75\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-2.jpg\" alt=\"\" class=\"wp-image-15924\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-2.jpg 700w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-2-300x32.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/3-2-600x64.jpg 600w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">8\u3001\u6570\u7ec4\u62fc\u63a5\uff0c\u62fc\u63a5\u5c31\u662f\u5148\u5c06\u6bcf\u4e2a\u6570\u7ec4\u8f6c\u4e3a\u5217\u8868\u540e\u62fc\u5230\u4e00\u8d77\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"102\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-3.jpg\" alt=\"\" class=\"wp-image-15926\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-3.jpg 698w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-3-300x44.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/1-3-600x88.jpg 600w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"50\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-3.jpg\" alt=\"\" class=\"wp-image-15927\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-3.jpg 700w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-3-300x21.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/12\/2-3-600x43.jpg 600w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>shell\u4e5f\u662f\u652f\u6301\u6570\u7ec4\u7684\uff0c\u53ef\u4ee5\u58f0\u660e\u666e\u901a\u7d22\u5f15\u6570\u7ec4\u548c\u5173\u8054\u6570\u7ec4\uff0c\u533a\u522b\u5982\u4e0b\uff1a 1\u3001\u5b9a\u4e49\u67095\u4e2a\u5143\u7d20\u7684\u666e\u901a\u7d22\u5f15\u6570\u7ec4\uff0c\u5e76\u6253\u5370 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":15896,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,37],"tags":[],"class_list":["post-15895","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-shell"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/15895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=15895"}],"version-history":[{"count":17,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/15895\/revisions"}],"predecessor-version":[{"id":17604,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/15895\/revisions\/17604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/15896"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=15895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=15895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=15895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}