{
    "componentChunkName": "component---src-templates-issues-tsx",
    "path": "/issues/583",
    "result": {"data":{"issuesJson":{"id":"9e4ba4c4-94ad-5c30-b358-8ea709f4419c","title":"oldratlee/useful-scripts: 👉 平时有用的手动操作做成脚本，以便捷地使用，让开发的日常生活更轻松些","number":583,"bodyHTML":"<div align=\"center\" dir=\"auto\">\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a><br><br></p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th align=\"right\">Repos</th>\n<th align=\"left\"><a href=\"https://github.com/oldratlee/useful-scripts\">oldratlee/useful-scripts</a></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\"><strong>Views</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/0be23f60f5e821ac911980e342bab720d78b13b9d318b0b3dbf797579769cb49/68747470733a2f2f76696577732e77686174696c656172656e65642e746f6461792f76696577732f6769746875622f6f6c647261746c65652f75736566756c2d736372697074732e737667\" alt=\"views\" data-canonical-src=\"https://views.whatilearened.today/views/github/oldratlee/useful-scripts.svg\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Stars</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/3db005942fbddb4ccaa1349b3dd502d9883558e6ac9f44111de8f8bcc450cfba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f6c647261746c65652f75736566756c2d736372697074733f636f6c6f723d663266303864266c6f676f3d556e64657274616c65266c6f676f436f6c6f723d656234363330\" alt=\"stars\" data-canonical-src=\"https://img.shields.io/github/stars/oldratlee/useful-scripts?color=f2f08d&amp;logo=Undertale&amp;logoColor=eb4630\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Forks</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/6134aacd8941613b8568f4c8e8d0608bd5ad98c029113c8dfd2197612e2f388d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6f6c647261746c65652f75736566756c2d736372697074733f636f6c6f723d626138366562266c6f676f3d48616e647368616b65266c6f676f436f6c6f723d656136616136\" alt=\"forks\" data-canonical-src=\"https://img.shields.io/github/forks/oldratlee/useful-scripts?color=ba86eb&amp;logo=Handshake&amp;logoColor=ea6aa6\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>License</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/c9f14753171dd0acb994ea33b325a19d5ab13ed4e710cababb18b16a78983671/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f6c647261746c65652f75736566756c2d736372697074733f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e53556845556741414144414141414177434159414141425841766d48414141414358424957584d41414173544141414c457745416d70775941414144336b6c45515652346e4f335953557a5555426748384a726f57567255474a66456d3773584e63534446784d544c327069347348456778654e526f77586770455742445552522532424e414e4f4b4f4b36366f6f4b4a4742586545475263574163455646475152484677516d483525324630774861655748493944554455354c356b6e6568644f62377a66652532423139636e434a47495243516945596c514237594a4979474c38616f73756c565a36695246516a69474b6b7564576735614c6c704f70704e586e665071773555304459524a6d56786a4367464633424c755a476d416f5655694b4541726d583744375553677351706f72674761336748664b34483663754262435644334771683141352532424c6745253242467749656e514d306a6f446f66714c6f48564e7742796d384370546e416d327a51713073676478624964515a556c416b7150415a3664676a303541446f59526f6f66792532466f5869726f376b3551586a4c6f70677a4b69514e6c4c4461716f4967754577426a7a7150355066446a45394479495879493633464d547751464d43567271774e61763451666f52673538514625324266724d485172454b3844546f434d714e4179574e4866786d54526f4c4f726d5352566747744466714345715a4f4851727a6f34706243557341333431365169364551394b476a6345465267484f724f4b6e5536574162396247455459656b4b7843766a546167394534706a653534446b3551503862624d4859762532464333756541654a6b50304f4778422532424a70426e4172595238455951516e6f4e31414e4661426e5050356c385372736559514c303641646b30464a5938484f5761424d6c6541486a683068506f73497a6c6f3876304125324633345a694f6548726130714b52504d5653493774762532423932747725324676687855654252713456454c674d376642714b354770526d6f514c584e7075625475367a6f4e52706754386e5051627138347764253246494375767978694b4871694e41664933774d367549684271476b4c696977414f734b44714f68743749747239567938536a52424557667941627225324668523142667056514664484a42253246423268683778376a36517077435665655951326b72554235436c636a3641326d3067576a25324244306d4c34397a573563517943484c4e37726a6c6d6d6174457958582532464372547a412532466f51785a6b576c39474a5443566f25324279546a3837253242346769504b6376307149486f344156344430565a727251493334706e70524d36357875652532467a417265453425324654253246536f676c664542794d7369517441546c4c3352414a355948725378365a44665337307337754d486842705225324659423573305057366f455270316236253246667252684b3353444c35546965364f515548516c5133735644752532427a50636b397657453973747225324236496a533967486d5750616861444a25324277434b364e494242587348423948796b587378774470686c436d416476706c6162554a4e6e5a504239342532464e7436784f6538587a4562503257684d335741673147756236744825324233513150673337365239713475716c6e6f36676448476a444f5139306562303141484d3672596975554a314f713472344656756a35765239427a4d3957674e764f7977446869495951467667626366774166774d764863615067425041253246447948476a50624e394138616d6562636477416444354e6633373574787165774e5552656f797677424958594c645170576c6877465771745061435044334173467541535636717171496c62304a766b564331464c39576b4c55556c55574b337a585a4c46432532423125324642726f46746f364f7358497545594a5034447a7a5732594656316f4a614141414141456c46546b5375516d4343\" alt=\"license\" data-canonical-src=\"https://img.shields.io/github/license/oldratlee/useful-scripts?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD3klEQVR4nO3YSUzUUBgH8JroWVrUGJfEm7sXNcSDFxMTL2pi4sHEgxeNRowXgpEWBDURR%2BNANOKOK66ooKJGBXeEGRcWAcEVFGQRHFwQmH5%2F0wHaeWHI9DUDU5L5knehdOb7zfe%2B19cnCJGIRCQiEYlQB7YJIyGL8aosulVZ6iRFQjiGKkudWg5aLlpOppNXnfPqw5U0DYRJmVxjCgFF3BLuZGmAoVUiKEArmX7D7USgsQporgGa3gHfK4H6cuBbCVD3Gqh1A5%2BLgE%2BFwIenQM0joDofqLoHVNwBym8CpTnAm2zQq0sgdxbIdQZUlAkqPAZ6dgj05ADoYRoofy%2FoXiro7k5QXjLopgzKiQNlLDaqoIguEwBjzqP5PfDjE9DyIXyI63FMTwQFMCVrqwNav4QfoRg58QF%2BfrMHQrEK8DToCMqNAyWNHfxmTRoLOrmSRVgGtDfqCEqZOHQrzo4pbCUsA3416Qi6EQ9KGjcEFRgHOrOKnU6WAb9bGETYekKxCvjTag9E4pje54Dk5QP8bbMHYv%2FC3ueAeJkP0OGxB%2BJpBnArYR8EYQQnoN1ANFaBnPP5l8SrseYQL06Adk0FJY8HOWaBMleAHjh0hPosIzlo8v0A%2F34ZiOeHra0qKRPMVSI7tv%2B92tw%2FvhxUeBRq4VELgM7fBqK5GpRmoQLXNpubTu6zoNRpgT8nPQbq84wd%2FICuvyxiKHqiNAfI3wM6uIhBqGkLiiwAOsKDqOht7Itr9Vy8SjRBEWfyAbr%2FhR1BfpVQFdHJB%2FB2hh7x7j6QpwCVeeYQ2krUB5Clcj6A2m0gWj%2BD0mL49zW5cQyCHLN7rjlmmatEyXX%2FCrTzA%2FoQxZkWl9GJTCVo%2ByTj87%2B4giPKcv0qIHo4AV4D0VZrrQI34pnpRM65xue%2FzAreE4%2FT%2FSoglfEByMsiQtATlL3RAJ5YHrSx6ZDfS70s7uMHhBpR%2FYB5s0PW6oERp1b6%2FfrRhK3SDL5Tie6OQUHQlQ3sVDu%2BzPck9vWE9str%2B6IjS9gHmWPahaDJ%2BwCK6NIBBXsHB9HykXsxwDphlCmAdvplabUJNnZPB94%2FNt6xOe8XzEbP2WhM3WAg1Gub6tH%2B3Q1Pg376R9q4uqlno6gdHGjDOQ90eb01AHM6rYiuUJ1Oq4r4FVuj5vR9BzM9WgNvOywDhiIYQFvgbcfwAfwMvHcaPgBPA%2FDyHGjPbN9A8amebcdwAdD5Nf375txqewNUReoyvwBIXYLdQpWlhwFWqtPaCPD3AsFuASV6qqqIlb0JvkVC1FL9WkLUUlUWK3zXZLFC%2B1%2FBroFto6OsXIuEYJP4DzzW2YFV1oJaAAAAAElFTkSuQmCC\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>UpdatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/df4892515de3539b1f5ef9595ac4ea42a15f34984c7c3c3571c3fa00c2459653/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6f6c647261746c65652f75736566756c2d736372697074733f646973706c61795f74696d657374616d703d636f6d6d6974746572266c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d557064617465644174\" alt=\"last-commit\" data-canonical-src=\"https://img.shields.io/github/last-commit/oldratlee/useful-scripts?display_timestamp=committer&amp;logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=UpdatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>CreatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/ee964909d9ea203ed4477368c3fe406d36c8a279296b5cb219c809d26e0824c5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f637265617465642d61742f6f6c647261746c65652f75736566756c2d736372697074733f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d437265617465644174\" alt=\"create-at\" data-canonical-src=\"https://img.shields.io/github/created-at/oldratlee/useful-scripts?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=CreatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<a href=\"https://github.com/opsre/awesome-ops\">\n</a><p dir=\"auto\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/b964a36ea4078c39f603d46a29436371c7541a2f26e0228d7b21b9d9805b43d3/68747470733a2f2f736f6369616c6966792e6769742e63692f6f707372652f617765736f6d652d6f70732f696d6167653f6465736372697074696f6e3d3126666f6e743d42697474657226666f726b733d31266973737565733d31266c616e67756167653d31266c6f676f3d6874747073253341253246253246617661746172732e67697468756275736572636f6e74656e742e636f6d25324675253246313838353638303230266e616d653d31266f776e65723d31267061747465726e3d436972637569742b426f6172642670756c6c733d31267374617267617a6572733d31267468656d653d4c69676874\" alt=\"\" data-canonical-src=\"https://socialify.git.ci/opsre/awesome-ops/image?description=1&amp;font=Bitter&amp;forks=1&amp;issues=1&amp;language=1&amp;logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F188568020&amp;name=1&amp;owner=1&amp;pattern=Circuit+Board&amp;pulls=1&amp;stargazers=1&amp;theme=Light\" style=\"max-width: 100%;\"></a></p>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a>\n</div>\n<h1 dir=\"auto\"><div align=\"center\" dir=\"auto\"><a href=\"#dummy\"><img src=\"https://private-user-images.githubusercontent.com/1063891/259156934-990d7ab3-1a84-4024-b1c6-4c8d441dcfc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTMwNjc1OTEsIm5iZiI6MTc1MzA2NzI5MSwicGF0aCI6Ii8xMDYzODkxLzI1OTE1NjkzNC05OTBkN2FiMy0xYTg0LTQwMjQtYjFjNi00YzhkNDQxZGNmYzYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDcyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA3MjFUMDMwODExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzVjY2I3YzNlOGE1YTkzYzg2YjBkOTUxM2I5NTkxNWRiOWNmYjgzOTMwNDUyYjI3NjlkMWQ0MTliMWJiNzBhYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.2IZxEzLAYqIDILo71i7LDAE7X1q7fwDJsb5mUBxjF3U\" alt=\"🐌 useful-scripts\" secured-asset-link=\"\" style=\"max-width: 100%;\"></a></div></h1>\n<p align=\"center\" dir=\"auto\">\n<a href=\"https://github.com/oldratlee/useful-scripts/actions/workflows/ci.yaml\"><img src=\"https://camo.githubusercontent.com/0957a5dac7b072bfa35bf832269198e46315685577704a8825bb4e526cde8bfb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6c647261746c65652f75736566756c2d736372697074732f63692e79616d6c3f6272616e63683d6465762d332e78266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465\" alt=\"Github Workflow Build Status\" data-canonical-src=\"https://img.shields.io/github/actions/workflow/status/oldratlee/useful-scripts/ci.yaml?branch=dev-3.x&amp;logo=github&amp;logoColor=white\" style=\"max-width: 100%;\"></a>\n<a href=\"https://github.com/oldratlee/useful-scripts/releases\"><img src=\"https://camo.githubusercontent.com/c777ae9c3ffa590c06fd549fc30b0cdab899f707393abab800485eef9be5954b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f6c647261746c65652f75736566756c2d736372697074732e737667\" alt=\"GitHub release\" data-canonical-src=\"https://img.shields.io/github/release/oldratlee/useful-scripts.svg\" style=\"max-width: 100%;\"></a>\n<a href=\"https://www.apache.org/licenses/LICENSE-2.0.html\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/ceece6b9b4ef0d8dfbcd5a41599abe5a6248452eb8555f9a79d694b7693e0465/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f6c647261746c65652f75736566756c2d736372697074733f636f6c6f723d344437413937266c6f676f3d617061636865\" alt=\"License\" data-canonical-src=\"https://img.shields.io/github/license/oldratlee/useful-scripts?color=4D7A97&amp;logo=apache\" style=\"max-width: 100%;\"></a>\n<a href=\"https://github.com/oldratlee/useful-scripts/stargazers\"><img src=\"https://camo.githubusercontent.com/9ad3d6e73550a0ebafc35cc2b28eeb3b25b97fa0fa889b5c4872d74415194ac4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f6c647261746c65652f75736566756c2d736372697074733f7374796c653d666c6174\" alt=\"GitHub Stars\" data-canonical-src=\"https://img.shields.io/github/stars/oldratlee/useful-scripts?style=flat\" style=\"max-width: 100%;\"></a>\n<a href=\"https://github.com/oldratlee/useful-scripts/fork\"><img src=\"https://camo.githubusercontent.com/1dd4ced533ddb1a33e8db4623894587f5ec49bd253a685493eb44ddf39edc2b0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6f6c647261746c65652f75736566756c2d736372697074733f7374796c653d666c6174\" alt=\"GitHub Forks\" data-canonical-src=\"https://img.shields.io/github/forks/oldratlee/useful-scripts?style=flat\" style=\"max-width: 100%;\"></a>\n<a href=\"https://github.com/oldratlee/useful-scripts/issues\"><img src=\"https://camo.githubusercontent.com/18778c286fa81a3302c9f09ef1e43abf7efa896d769a512567b9a1dc20f70a6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6f6c647261746c65652f75736566756c2d73637269707473\" alt=\"GitHub issues\" data-canonical-src=\"https://img.shields.io/github/issues/oldratlee/useful-scripts\" style=\"max-width: 100%;\"></a>\n<a href=\"https://github.com/oldratlee/useful-scripts/graphs/contributors\"><img src=\"https://camo.githubusercontent.com/76d82d43611766aa7bc17f1f471b5cf289af785c0500bdd2b3e8210db767bb35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6f6c647261746c65652f75736566756c2d73637269707473\" alt=\"GitHub Contributors\" data-canonical-src=\"https://img.shields.io/github/contributors/oldratlee/useful-scripts\" style=\"max-width: 100%;\"></a>\n<a href=\"https://github.com/oldratlee/useful-scripts\"><img src=\"https://camo.githubusercontent.com/9aa2e45829a49a598f233f3a28efe4f1220f47b3928fb3c2a4e81ca8077d790e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6f6c647261746c65652f75736566756c2d73637269707473\" alt=\"GitHub repo size\" data-canonical-src=\"https://img.shields.io/github/repo-size/oldratlee/useful-scripts\" style=\"max-width: 100%;\"></a>\n</p>\n<p dir=\"auto\">🐌 useful scripts for making developer's everyday life easier and happier, involved java, shell etc.</p>\n<p dir=\"auto\">👉 平时有用的手动操作做成脚本，以便捷地使用，让开发的日常生活更轻松些。 💕</p>\n<p dir=\"auto\">欢迎 👏 💖</p>\n<ul dir=\"auto\">\n<li>提问，<a href=\"https://github.com/oldratlee/useful-scripts/issues/new\">提交 Issue</a></li>\n<li>分享平时自己常用但没有写成脚本的功能（即需求、想法），<a href=\"https://github.com/oldratlee/useful-scripts/issues/new\">提交Issue</a></li>\n<li>优化改进，<a href=\"https://github.com/oldratlee/useful-scripts/fork\">Fork 后提通过 Pull Request 贡献代码</a></li>\n<li>提供的自己好用脚本实现，<a href=\"https://github.com/oldratlee/useful-scripts/fork\">Fork 后提通过 Pull Request 提供</a></li>\n</ul>\n<p dir=\"auto\">本仓库的脚本（如<code class=\"notranslate\">Java</code>相关脚本）在阿里等公司（如随身云，见<a href=\"https://github.com/Suishenyun/awesome-scripts\"><code class=\"notranslate\">awesome-scripts</code>仓库</a>说明）的线上生产环境部署使用。</p>\n<p dir=\"auto\">如果你的公司有部署使用，欢迎使用通过 <a href=\"https://github.com/oldratlee/useful-scripts/issues/96\" data-hovercard-type=\"issue\" data-hovercard-url=\"/oldratlee/useful-scripts/issues/96/hovercard\">Issue：who's using | 用户反馈收集</a> 告知，方便互相交流反馈～ 💗</p>\n<p dir=\"auto\"><a href=\"#dummy\"><img src=\"https://private-user-images.githubusercontent.com/1063891/259157301-82f2d184-ca16-4c37-b053-07f21fd8aef1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTMwNjc1OTEsIm5iZiI6MTc1MzA2NzI5MSwicGF0aCI6Ii8xMDYzODkxLzI1OTE1NzMwMS04MmYyZDE4NC1jYTE2LTRjMzctYjA1My0wN2YyMWZkOGFlZjEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDcyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA3MjFUMDMwODExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDBiZDNlZGI3ZGNmYzNkMjk1YjQxMzc1N2Q3ZGEyMzhjMWE0MGQ1NzRmOGIxYTk4ZDI1MzA0NzdkNWRjMjVkYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.tTSFNRqssshiF_cVSYEQE1dLu5jz3xqQc5JVwy3IcKU\" alt=\"repo-icon\" width=\"20%\" align=\"right\" secured-asset-link=\"\" style=\"max-width: 100%;\"></a></p>\n<hr>\n\n\n<ul dir=\"auto\">\n<li><a href=\"#-%E5%BF%AB%E9%80%9F%E4%B8%8B%E8%BD%BD%E4%BD%BF%E7%94%A8\">🔰 快速下载&amp;使用</a></li>\n<li><a href=\"#-%E4%BD%BF%E7%94%A8%E6%96%87%E6%A1%A3\">📚 使用文档</a>\n<ul dir=\"auto\">\n<li><a href=\"#-java%E7%9B%B8%E5%85%B3%E8%84%9A%E6%9C%AC\">☕ <code class=\"notranslate\">Java</code>相关脚本</a></li>\n<li><a href=\"#-shell%E7%9B%B8%E5%85%B3%E8%84%9A%E6%9C%AC\">🐚 <code class=\"notranslate\">Shell</code>相关脚本</a></li>\n</ul>\n</li>\n<li><a href=\"#-developer-guide\">🎓 Developer Guide</a>\n<ul dir=\"auto\">\n<li><a href=\"#-%E9%9D%A2%E5%90%91%E5%BC%80%E5%8F%91%E8%80%85%E7%9A%84%E7%9B%AE%E6%A0%87\">🎯 面向开发者的目标</a>\n<ul dir=\"auto\">\n<li><a href=\"#%E5%85%B3%E4%BA%8Eshell%E8%84%9A%E6%9C%AC\">关于<code class=\"notranslate\">Shell</code>脚本</a></li>\n</ul>\n</li>\n<li><a href=\"#-%E5%BC%80%E5%8F%91%E7%BA%A6%E5%AE%9A\">🚦 开发约定</a></li>\n<li><a href=\"#-shell%E5%AD%A6%E4%B9%A0%E4%B8%8E%E5%BC%80%E5%8F%91%E7%9A%84%E8%B5%84%E6%96%99\">📚 <code class=\"notranslate\">Shell</code>学习与开发的资料</a></li>\n</ul>\n</li>\n</ul>\n\n<hr>\n<h2 dir=\"auto\">🔰 快速下载&amp;使用</h2>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"source &lt;(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/release-3.x/test/self-installer.sh)\"><pre class=\"notranslate\"><span class=\"pl-c1\">source</span> <span class=\"pl-s\"><span class=\"pl-pds\">&lt;(</span>curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/release-3.x/test/self-installer.sh<span class=\"pl-pds\">)</span></span></pre></div>\n<p dir=\"auto\">更多下载&amp;使用方式，参见<a href=\"docs/install.md\">下载使用</a>。</p>\n<h2 dir=\"auto\">📚 使用文档</h2>\n<h3 dir=\"auto\">☕ <a href=\"docs/java.md\"><code class=\"notranslate\">Java</code>相关脚本</a></h3>\n<ol dir=\"auto\">\n<li><a href=\"docs/java.md#-show-busy-java-threads\">show-busy-java-threads</a><br>\n用于快速排查<code class=\"notranslate\">Java</code>的<code class=\"notranslate\">CPU</code>性能问题(<code class=\"notranslate\">top us</code>值过高)，自动查出运行的<code class=\"notranslate\">Java</code>进程中消耗<code class=\"notranslate\">CPU</code>多的线程，并打印出其线程栈，从而确定导致性能问题的方法调用。</li>\n<li><a href=\"docs/java.md#-show-duplicate-java-classes\">show-duplicate-java-classes</a><br>\n找出<code class=\"notranslate\">jar</code>文件和<code class=\"notranslate\">class</code>目录中的重复类。用于排查<code class=\"notranslate\">Java</code>类冲突问题。</li>\n<li><a href=\"docs/java.md#-find-in-jars\">find-in-jars</a><br>\n在目录下所有<code class=\"notranslate\">jar</code>文件里，查找类或资源文件。</li>\n</ol>\n<h3 dir=\"auto\">🐚 <a href=\"docs/shell.md\"><code class=\"notranslate\">Shell</code>相关脚本</a></h3>\n<p dir=\"auto\"><code class=\"notranslate\">Shell</code>使用加强：</p>\n<ol dir=\"auto\">\n<li><a href=\"docs/shell.md#-c\">c</a><br>\n原样命令行输出，并拷贝标准输出到系统剪贴板，省去<code class=\"notranslate\">CTRL+C</code>操作，优化命令行与其它应用之间的操作流。</li>\n<li><a href=\"docs/shell.md#-coat\">coat and taoc</a><br>\n彩色<code class=\"notranslate\">cat</code>/<code class=\"notranslate\">tac</code>出文件行，方便人眼区分不同的行。</li>\n<li><a href=\"docs/shell.md#-a2l\">a2l</a><br>\n按行彩色输出参数，方便人眼查看。</li>\n<li><a href=\"docs/shell.md#-uq\">uq</a><br>\n不重排序输入完成整个输入行的去重。相比系统的<code class=\"notranslate\">uniq</code>命令加强的是可以跨行去重，不需要排序输入。</li>\n<li><a href=\"docs/shell.md#-ap-and-rp\">ap and rp</a><br>\n批量转换文件路径为绝对路径/相对路径，会自动跟踪链接并规范化路径。</li>\n<li><a href=\"docs/shell.md#-cp-into-docker-run\">cp-into-docker-run</a><br>\n一个<code class=\"notranslate\">Docker</code>使用的便利脚本。拷贝本机的执行文件到指定的<code class=\"notranslate\">docker container</code>中并在<code class=\"notranslate\">docker container</code>中执行。</li>\n<li><a href=\"docs/shell.md#-tcp-connection-state-counter\">tcp-connection-state-counter</a><br>\n统计各个<code class=\"notranslate\">TCP</code>连接状态的个数。用于方便排查系统连接负荷问题。</li>\n<li><a href=\"docs/shell.md#-xpl-and-xpf\">xpl and xpf</a><br>\n在命令行中快速完成 在文件浏览器中 打开/选中 指定的文件或文件夹的操作，优化命令行与其它应用之间的操作流。</li>\n</ol>\n<p dir=\"auto\"><code class=\"notranslate\">Shell</code>开发/测试加强：</p>\n<ol dir=\"auto\">\n<li><a href=\"docs/shell.md#-echo-args\">echo-args</a><br>\n输出脚本收到的参数，在控制台运行时，把参数值括起的括号显示成 <strong>红色</strong>，方便人眼查看。用于调试脚本参数输入。</li>\n<li><a href=\"docs/shell.md#-console-text-color-themessh\">console-text-color-themes.sh</a><br>\n显示<code class=\"notranslate\">Terminator</code>的全部文字彩色组合的效果及其打印方式，用于开发<code class=\"notranslate\">Shell</code>的彩色输出。</li>\n<li><a href=\"docs/shell.md#-parseoptssh\">parseOpts.sh</a><br>\n命令行选项解析库，加强支持选项有多个值（即数组）。</li>\n</ol>\n<h2 dir=\"auto\">🎓 Developer Guide</h2>\n<p dir=\"auto\">为用户提供有用的功能，当然是这个库的首要的价值体现和存在理由。</p>\n<p dir=\"auto\">但作为一个<strong>开源</strong>项目，每个人都可以看到源码实现，这个库或许能做得更多。</p>\n<h3 dir=\"auto\">🎯 面向开发者的目标</h3>\n<ul dir=\"auto\">\n<li>将<code class=\"notranslate\">Shell/Bash</code>作为线上生产环境使用的专业编程语言。</li>\n<li>期望体现<code class=\"notranslate\">Shell/Bash</code>脚本 生产环境级的严谨开发方式与最佳实践，进而有可能示例与改善在生产环境中<code class=\"notranslate\">Shell</code>脚本的质量状况。</li>\n</ul>\n<p dir=\"auto\">PS：</p>\n<ul dir=\"auto\">\n<li>虽然上面是自己期望的目标，但自己在<code class=\"notranslate\">Shell</code>语言上一定会有很多理解和使用上的问题、在这些实现脚本中也会很多需要的改进，可以一起学习、讨论与实践～ 💕</li>\n<li>这个库中脚本的实现也有使用<code class=\"notranslate\">Python</code>。</li>\n</ul>\n<h4 dir=\"auto\">关于<code class=\"notranslate\">Shell</code>脚本</h4>\n<p dir=\"auto\">命令行（<code class=\"notranslate\">CLI</code>）几乎是每个程序员每天都在使用的工具。相比图形界面工具（<code class=\"notranslate\">GUI</code>），命令行有着自己不可替代的便利性和优越性。</p>\n<p dir=\"auto\">命令行里写出来其实就是<code class=\"notranslate\">Shell</code>脚本，可以说每个开发者会写<code class=\"notranslate\">Shell</code>脚本（或多或少）。在生产环境的功能实现中，也常会看到<code class=\"notranslate\">Shell</code>脚本（虽然不如主流语言那么常见）。</p>\n<p dir=\"auto\">可能正因为上面所说的<code class=\"notranslate\">Shell</code>脚本的便利性和大众性：</p>\n<ul dir=\"auto\">\n<li><code class=\"notranslate\">Shell</code>脚本有不少是顺手实现的（包括生产环境用的<code class=\"notranslate\">Shell</code>脚本）；</li>\n<li><code class=\"notranslate\">Shell</code>脚本的实现常常可能质量不高，会引发线上严重的故障。</li>\n</ul>\n<h3 dir=\"auto\">🚦 开发约定</h3>\n<p dir=\"auto\">在这个库中的<code class=\"notranslate\">Shell</code>脚本：</p>\n<ul dir=\"auto\">\n<li>统一使用<code class=\"notranslate\">Bash 3.2+</code>；</li>\n<li>面向生产环境，尽可能使用严谨安全的开发方式。</li>\n</ul>\n<p dir=\"auto\"><code class=\"notranslate\">Shell</code>用<code class=\"notranslate\">Bash</code>的原因是：</p>\n<ul dir=\"auto\">\n<li>目前仍然是主流的<code class=\"notranslate\">Shell</code>，并且在不同环境基本上都缺省部署了。</li>\n<li>在<a href=\"https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/background.html#shell\" rel=\"nofollow\"><code class=\"notranslate\">Google</code>的<code class=\"notranslate\">Shell</code>风格指南</a>中，明确说到了：<code class=\"notranslate\">Bash</code>是<strong>唯一</strong>被允许执行的<code class=\"notranslate\">shell</code>脚本语言。</li>\n<li>统一用<code class=\"notranslate\">Bash</code>，可以避免不同<code class=\"notranslate\">Shell</code>之间差异所带来的风险与没有收益的复杂性。\n<ul dir=\"auto\">\n<li>有大量的<code class=\"notranslate\">Shell</code>实现，<code class=\"notranslate\">sh</code>、<code class=\"notranslate\">bash</code>、<code class=\"notranslate\">zsh</code>、<code class=\"notranslate\">fish</code>、<code class=\"notranslate\">csh</code>、<code class=\"notranslate\">tcsh</code>、<code class=\"notranslate\">ksh</code>、<code class=\"notranslate\">ash</code>、<code class=\"notranslate\">dash</code>……</li>\n<li>不同的<code class=\"notranslate\">Shell</code>有各种差异，深坑勿入。</li>\n</ul>\n</li>\n<li>个人系统学习过的是<code class=\"notranslate\">Bash</code>，比较理解熟悉。</li>\n</ul>\n<p dir=\"auto\">PS: 虽然交互<code class=\"notranslate\">Shell</code>个人已经使用<code class=\"notranslate\">Zsh</code> + <a href=\"https://ohmyz.sh/\" rel=\"nofollow\"><code class=\"notranslate\">oh-my-zsh</code></a>，但在严谨的<code class=\"notranslate\">Shell</code>脚本开发时还是使用<code class=\"notranslate\">Bash</code>。</p>\n<h3 dir=\"auto\">📚 <code class=\"notranslate\">Shell</code>学习与开发的资料</h3>\n<blockquote>\n<p dir=\"auto\">更多资料参见 <a href=\"docs/developer-guide.md\">子文档</a>。</p>\n</blockquote>\n<ul dir=\"auto\">\n<li>🛠️ 开发规范与工具\n<ul dir=\"auto\">\n<li><a href=\"https://google.github.io/styleguide/shell.xml\" rel=\"nofollow\"><code class=\"notranslate\">Google Shell Style Guide</code></a> | <a href=\"https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/contents.html\" rel=\"nofollow\">中文版</a></li>\n<li><a href=\"https://github.com/koalaman/shellcheck\"><code class=\"notranslate\">koalaman/shellcheck</code></a>: <code class=\"notranslate\">ShellCheck</code>, a static analysis tool for shell scripts</li>\n<li><a href=\"https://github.com/mvdan/sh\"><code class=\"notranslate\">mvdan/sh(shfmt)</code></a>: <code class=\"notranslate\">shfmt</code> formats shell programs</li>\n</ul>\n</li>\n<li>👷 <strong><code class=\"notranslate\">Bash/Shell</code>最佳实践与安全编程</strong>文章\n<ul dir=\"auto\">\n<li><a href=\"http://redsymbol.net/articles/unofficial-bash-strict-mode/\" rel=\"nofollow\">Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)</a></li>\n<li>Bash Pitfalls: 编程易犯的错误 - 团子的小窝：<a href=\"http://kodango.com/bash-pitfalls-part-1\" rel=\"nofollow\">Part 1</a> | <a href=\"http://kodango.com/bash-pitfalls-part-2\" rel=\"nofollow\">Part 2</a> | <a href=\"http://kodango.com/bash-pitfalls-part-3\" rel=\"nofollow\">Part 3</a> | <a href=\"http://kodango.com/bash-pitfalls-part-4\" rel=\"nofollow\">Part 4</a> | <a href=\"http://mywiki.wooledge.org/BashPitfalls\" rel=\"nofollow\">英文原文：Bash Pitfalls</a></li>\n<li><a href=\"https://github.com/oldratlee/useful-scripts/issues/57#issuecomment-326485965\" data-hovercard-type=\"issue\" data-hovercard-url=\"/oldratlee/useful-scripts/issues/57/hovercard\">不要自己去指定<code class=\"notranslate\">sh</code>的方式去执行脚本</a></li>\n</ul>\n</li>\n<li>🎶 <strong>Tips</strong>\n<ul dir=\"auto\">\n<li><a href=\"https://linuxtoy.org/archives/bash-shortcuts.html\" rel=\"nofollow\">让你提升命令行效率的 Bash 快捷键 【完整版】</a><br>\n补充：<code class=\"notranslate\">ctrl + x, ctrl + e</code> 就地打开文本编辑器来编辑当前命令行，对于复杂命令行特别有用</li>\n<li><a href=\"https://coolshell.cn/articles/8883.html\" rel=\"nofollow\">应该知道的Linux技巧 | 酷 壳 - CoolShell</a></li>\n<li>简洁的 Bash Programming 技巧 - 团子的小窝：<a href=\"http://kodango.com/simple-bash-programming-skills\" rel=\"nofollow\">Part 1</a> | <a href=\"http://kodango.com/simple-bash-programming-skills-2\" rel=\"nofollow\">Part 2</a> | <a href=\"http://kodango.com/simple-bash-programming-skills-3\" rel=\"nofollow\">Part 3</a></li>\n</ul>\n</li>\n<li>💎 <strong>系统学习</strong> — 看文章、了解Tips完全不能替代系统学习才能真正理解并专业开发！\n<ul dir=\"auto\">\n<li><a href=\"https://book.douban.com/subject/26738258/\" rel=\"nofollow\">《Bash Pocket Reference》</a><br>\n力荐！说明简单直接结构体系的佳作，专业<code class=\"notranslate\">Bash</code>编程必备！且16年的第二版更新到了新版的<code class=\"notranslate\">Bash 4</code></li>\n<li><a href=\"https://book.douban.com/subject/1241361/\" rel=\"nofollow\">《学习bash》</a> 上面那本的展开版</li>\n<li>官方资料\n<ul dir=\"auto\">\n<li><a href=\"https://manned.org/bash\" rel=\"nofollow\"><code class=\"notranslate\">bash man</code></a> | <a href=\"http://ahei.info/chinese-bash-man.htm\" rel=\"nofollow\">中文版</a></li>\n<li><a href=\"http://www.gnu.org/software/bash/manual/\" rel=\"nofollow\">Bash Reference Manual - gnu.org</a> | <a href=\"https://yiyibooks.cn/Phiix/bash_reference_manual/bash%E5%8F%82%E8%80%83%E6%96%87%E6%A1%A3.html\" rel=\"nofollow\">中文版</a><br>\nBash参考手册，讲得全面且有深度，比如会全面地讲解不同转义的区别、命令的解析过程，这有助统一深入的方式认识Bash整个执行方式和过程。这些内容在其它书中往往不会讲（因为复杂难于深入浅出的讲解），但却一通百通的关键。</li>\n</ul>\n</li>\n<li><a href=\"https://hangar118.sdf.org/p/bash-scripting-guide/index.html\" rel=\"nofollow\">Advanced Bash-Scripting Guide</a>: An in-depth exploration of the art of shell scripting.</li>\n<li><a href=\"https://github.com/jlevy/the-art-of-command-line/blob/master/README-zh.md\">命令行的艺术 - <code class=\"notranslate\">jlevy/the-art-of-command-line</code></a></li>\n<li><a href=\"https://github.com/awesome-lists/awesome-bash\"><code class=\"notranslate\">awesome-lists/awesome-bash</code></a>: A curated list of delightful Bash scripts and resources.</li>\n<li><a href=\"https://github.com/alebcay/awesome-shell\"><code class=\"notranslate\">alebcay/awesome-shell</code></a>: A curated list of awesome command-line frameworks, toolkits, guides and gizmos.</li>\n<li>更多书籍参见个人整理的<a href=\"https://www.douban.com/doulist/1779379/\" rel=\"nofollow\">书籍豆列 <strong><em><code class=\"notranslate\">Bash/Shell</code></em></strong></a></li>\n</ul>\n</li>\n</ul>","updatedAt":"2025-05-22T01:51:57Z","upvoteCount":null,"author":{"login":"eryajf","avatarUrl":"https://avatars.githubusercontent.com/u/33259379?u=e4a4090a38ac2473aaed4ef9945233636776c6c3&v=4","url":"https://github.com/eryajf"},"category":null,"labels":{"edges":[{"node":{"name":"更多","color":"25B472"}},{"node":{"name":"Shell-Scripts","color":"6c2d3a"}},{"node":{"name":"oldratlee","color":"2d83ed"}}]},"comments":{"edges":[]}}},"pageContext":{"number":583,"previous":{"title":"louislam/uptime-kuma: Uptime Kuma 是一款易于使用的自托管监控工具。","number":582},"next":{"title":"utmapp/utm: 适用于 iOS 和 MacOS 的虚拟机工具","number":584}}},
    "staticQueryHashes": ["151096407","2861350382"]}