{"id":13099,"date":"2024-01-01T00:56:15","date_gmt":"2023-12-31T21:26:15","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/"},"modified":"2024-01-01T00:56:15","modified_gmt":"2023-12-31T21:26:15","slug":"%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/","title":{"rendered":"\u062f\u0633\u062a\u0648\u0631 Bash jq"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d9%86%d8%b5%d8%a8_jq\" >\u0646\u0635\u0628 jq<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_json\" >\u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_json_%d8%a8%d8%a7_%da%af%d8%b2%db%8c%d9%86%d9%87_%e2%80%93c\" >\u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0628\u0627 \u06af\u0632\u06cc\u0646\u0647 \u2013c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%db%8c%da%a9_%d9%81%d8%a7%db%8c%d9%84_json\" >\u062e\u0648\u0627\u0646\u062f\u0646 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 JSON<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d9%81%d8%a7%db%8c%d9%84_json_%d8%a8%d8%a7_%e2%80%98\" >\u062e\u0648\u0627\u0646\u062f\u0646 \u0641\u0627\u06cc\u0644 JSON \u0628\u0627 &#8216;|&#8217;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d9%85%d9%82%d8%a7%d8%af%db%8c%d8%b1_%d8%aa%da%a9_%da%a9%d9%84%db%8c%d8%af%db%8c\" >\u062e\u0648\u0627\u0646\u062f\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u062a\u06a9 \u06a9\u0644\u06cc\u062f\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%da%86%d9%86%d8%af_%da%a9%d9%84%db%8c%d8%af\" >\u062e\u0648\u0627\u0646\u062f\u0646 \u0686\u0646\u062f \u06a9\u0644\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%da%a9%d9%84%db%8c%d8%af_%d8%b1%d8%a7_%d8%a7%d8%b2_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_json_%d8%ad%d8%b0%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u06a9\u0644\u06cc\u062f \u0631\u0627 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%a7%d8%b1%d8%b2%d8%b4_%d9%87%d8%a7%db%8c_%d9%86%d9%82%d8%b4%d9%87_%d8%a8%d8%b1%d8%af%d8%a7%d8%b1%db%8c\" >\u0627\u0631\u0632\u0634 \u0647\u0627\u06cc \u0646\u0642\u0634\u0647 \u0628\u0631\u062f\u0627\u0631\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%af%d8%b3%d8%aa%d9%88%d8%b1-bash-jq\/#%d8%ac%d8%b3%d8%aa%d8%ac%d9%88%db%8c_%d9%85%d9%82%d8%a7%d8%af%db%8c%d8%b1_%d8%a8%d8%b1_%d8%a7%d8%b3%d8%a7%d8%b3_%d8%b4%d8%a7%d8%ae%d8%b5_%d9%88_%d8%b7%d9%88%d9%84\" >\u062c\u0633\u062a\u062c\u0648\u06cc \u0645\u0642\u0627\u062f\u06cc\u0631 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0627\u062e\u0635 \u0648 \u0637\u0648\u0644<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div id=\"wpbody\">\n<p>\u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0628\u0631\u0627\u06cc \u0627\u0647\u062f\u0627\u0641 \u0645\u062e\u062a\u0644\u0641\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u0627\u0645\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0631\u0627 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0644 JSON \u062e\u0648\u0627\u0646\u062f bash \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u0627\u0646\u0646\u062f \u0633\u0627\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0645\u0639\u0645\u0648\u0644\u06cc. <strong>jq<\/strong> \u0627\u0628\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u062d\u0644 \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<strong> jq<\/strong> \u0641\u0631\u0645\u0627\u0646 \u0645\u0627\u0646\u0646\u062f \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f <strong>sed<\/strong> \u0648 <strong>\u0628\u06cc\u062e\u06cc\u0627\u0644<\/strong> \u0641\u0631\u0645\u0627\u0646\u060c \u0648 \u0627\u0632 \u06cc\u06a9 \u0632\u0628\u0627\u0646 \u062e\u0627\u0635 \u062f\u0627\u0645\u0646\u0647 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631 \u0628\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f. <strong>jq<\/strong> \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 \u062f\u0627\u062e\u0644\u06cc \u0646\u06cc\u0633\u062a.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0628\u0627\u06cc\u062f \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.  \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0635\u0628 \u0648 \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f <strong>jq <\/strong>\u062f\u0633\u062a\u0648\u0631 \u062e\u0648\u0627\u0646\u062f\u0646 \u06cc\u0627 \u062f\u0633\u062a\u06a9\u0627\u0631\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%d9%86%d8%b5%d8%a8_jq\"><\/span><strong>\u0646\u0635\u0628 jq<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 jq \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648<\/p>\n<div class=\"codecolorer-container bash default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f<\/span> jq<\/div>\n<\/div>\n<p><img decoding=\"async\" fetchpriority=\"high\" class=\"aligncenter size-full wp-image-32212\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"728\" height=\"423\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 728w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/1-16-300x174.png 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_json\"><\/span><strong>\u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f\u060c \u0634\u0645\u0627 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 JSON \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u0627\u0639\u0644\u0627\u0645 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f <strong>JsonData<\/strong> \u062f\u0631 terminal \u0648 \u0627\u062c\u0631\u0627 <strong>jq<\/strong> \u062f\u0633\u062a\u0648\u0631 \u0628\u0627 \u0622\u0646 \u0645\u062a\u063a\u06cc\u0631 \u0628\u0647 print \u0645\u062d\u062a\u0648\u0627\u06cc \u0622\u0646 \u0645\u062a\u063a\u06cc\u0631<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:680px;\">\n<div class=\"text codecolorer\">$ JsonData=&#8221;[{&#8220;Book&#8221;:&#8221;PHP 7&#8243;}, {&#8220;Publication&#8221;:&#8221;Apress&#8221;},<br \/>\n{&#8220;Book&#8221;:&#8221;React 16 Essentials&#8221;},{&#8220;Publication&#8221;:&#8221;Packt&#8221;} ]&#8221;<br \/>\n$ echo &#8220;${JsonData}&#8221; |  jq &#8216;.&#8217;<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32213\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"747\" height=\"350\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_84_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 747w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/2-17-300x141.png 300w\" data-lazy-sizes=\"(max-width: 747px) 100vw, 747px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_84_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32213\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_84_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"747\" height=\"350\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_84_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 747w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/2-17-300x141.png 300w\" sizes=\"(max-width: 747px) 100vw, 747px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_json_%d8%a8%d8%a7_%da%af%d8%b2%db%8c%d9%86%d9%87_%e2%80%93c\"><\/span><strong>\u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0628\u0627 \u06af\u0632\u06cc\u0646\u0647 \u2013c<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u06af\u0632\u06cc\u0646\u0647 -c \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 jq \u0628\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f print \u0647\u0631 \u0634\u06cc JSON \u062f\u0631 \u0647\u0631 \u062e\u0637.  \u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631\u060c \u0647\u0631 \u0634\u06cc\u0621 \u0627\u0632 \u0645\u062a\u063a\u06cc\u0631 JsonData \u0686\u0627\u067e \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ echo &#8220;${JsonData}&#8221; |  jq -c &#8216;.[]&#8217;<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%db%8c%da%a9_%d9%81%d8%a7%db%8c%d9%84_json\"><\/span><strong>\u062e\u0648\u0627\u0646\u062f\u0646 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 JSON<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u062f\u0633\u062a\u0648\u0631 jq \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u0641\u0627\u06cc\u0644 JSON \u0646\u06cc\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.  \u06cc\u06a9 \u0641\u0627\u06cc\u0644 JSON \u0628\u0627 \u0646\u0627\u0645 Students.json \u0628\u0627 \u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0628\u0639\u062f\u06cc \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627 \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n<h4><strong>Students.json<\/strong><\/h4>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">[<br \/>\n{<br \/>\n&#8220;roll&#8221;: 3,<br \/>\n&#8220;name&#8221;: &#8220;Micheal&#8221;,<br \/>\n&#8220;batch&#8221;: 29,<br \/>\n&#8220;department&#8221;: &#8220;CSE&#8221;<br \/>\n},<br \/>\n{<br \/>\n&#8220;roll&#8221;: 55,<br \/>\n&#8220;name&#8221;: &#8220;Lisa&#8221;,<br \/>\n&#8220;batch&#8221;: 34,<br \/>\n&#8220;department&#8221;: &#8220;BBA&#8221;<br \/>\n},<br \/>\n{<br \/>\n&#8220;roll&#8221;: 12,<br \/>\n&#8220;name&#8221;: &#8220;John&#8221;,<br \/>\n&#8220;batch&#8221;: 22,<br \/>\n&#8220;department&#8221;: &#8220;English&#8221;<br \/>\n}<br \/>\n]<\/div>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u0641\u0627\u06cc\u0644 Students.json \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;.&#8217;  Students.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32214\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"739\" height=\"403\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_686_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 739w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/4-17-300x164.png 300w\" data-lazy-sizes=\"(max-width: 739px) 100vw, 739px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_686_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32214\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_686_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"739\" height=\"403\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057970_686_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 739w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/4-17-300x164.png 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d9%81%d8%a7%db%8c%d9%84_json_%d8%a8%d8%a7_%e2%80%98\"><\/span><strong>\u062e\u0648\u0627\u0646\u062f\u0646 \u0641\u0627\u06cc\u0644 JSON \u0628\u0627 &#8216;|&#8217;<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 &#8216;|&#8217; \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f  \u0646\u0645\u0627\u062f \u0631\u0627 \u0628\u0647 \u0631\u0648\u0634 \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u0647\u0631 \u0641\u0627\u06cc\u0644 JSON.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ cat Students.json |  jq &#8216;.&#8217;<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32215\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"741\" height=\"411\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057971_532_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 741w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/5-16-300x166.png 300w\" data-lazy-sizes=\"(max-width: 741px) 100vw, 741px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057971_532_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32215\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057971_532_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"741\" height=\"411\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057971_532_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 741w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/5-16-300x166.png 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%d9%85%d9%82%d8%a7%d8%af%db%8c%d8%b1_%d8%aa%da%a9_%da%a9%d9%84%db%8c%d8%af%db%8c\"><\/span><strong>\u062e\u0648\u0627\u0646\u062f\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u062a\u06a9 \u06a9\u0644\u06cc\u062f\u06cc<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0647\u0631 \u0634\u06cc \u062e\u0627\u0635 \u0631\u0627 \u0627\u0632 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 JSON \u0628\u062e\u0648\u0627\u0646\u06cc\u062f <strong>jq<\/strong> \u0641\u0631\u0645\u0627\u0646  \u06a9\u0647 \u062f\u0631 <strong>Students.json<\/strong>\u060c \u0686\u0647\u0627\u0631 \u0634\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f.  \u0627\u06cc\u0646\u0647\u0627 \u0647\u0633\u062a\u0646\u062f <strong>\u0631\u0648\u0644\u060c \u0646\u0627\u0645\u060c \u062f\u0633\u062a\u0647 \u0648 \u0628\u062e\u0634<\/strong>.  \u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u0631\u0632\u0634 \u0622\u0646 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f <strong>\u0628\u062e\u0634 <\/strong>\u06a9\u0644\u06cc\u062f \u0641\u0642\u0637 \u0627\u0632 \u0647\u0631 \u0631\u06a9\u0648\u0631\u062f \u0648 \u0633\u067e\u0633 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f <strong>jq<\/strong> \u0628\u0647 \u0631\u0648\u0634 \u0632\u06cc\u0631 \u062f\u0633\u062a\u0648\u0631 \u062f\u0647\u06cc\u062f<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;.[] |  .department&#8217; Students.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32216\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"741\" height=\"97\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_493_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 741w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/6-15-300x39.png 300w\" data-lazy-sizes=\"(max-width: 741px) 100vw, 741px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_493_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32216\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_493_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"741\" height=\"97\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_493_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 741w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/6-15-300x39.png 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%d8%ae%d9%88%d8%a7%d9%86%d8%af%d9%86_%da%86%d9%86%d8%af_%da%a9%d9%84%db%8c%d8%af\"><\/span><strong>\u062e\u0648\u0627\u0646\u062f\u0646 \u0686\u0646\u062f \u06a9\u0644\u06cc\u062f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0648 \u06cc\u0627 \u0686\u0646\u062f \u0645\u0642\u062f\u0627\u0631 \u0634\u06cc \u0631\u0627 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0628\u062e\u0648\u0627\u0646\u06cc\u062f\u060c \u0646\u0627\u0645 \u0627\u0634\u06cc\u0627\u0621 \u0631\u0627 \u0628\u0627 \u062c\u062f\u0627 \u06a9\u0631\u062f\u0646 \u06a9\u0627\u0645\u0627 (\u060c) \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 jq \u0630\u06a9\u0631 \u06a9\u0646\u06cc\u062f.  \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0631\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0645\u06cc \u06a9\u0646\u062f <strong>\u0646\u0627\u0645<\/strong> \u0648 <strong>\u0628\u062e\u0634<\/strong> \u06a9\u0644\u06cc\u062f\u0647\u0627<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;.[] |  .name, .department&#8217; Students.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32217\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"738\" height=\"151\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_583_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 738w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/7-16-300x61.png 300w\" data-lazy-sizes=\"(max-width: 738px) 100vw, 738px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_583_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32217\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_583_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"738\" height=\"151\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057972_583_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 738w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/7-16-300x61.png 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%da%a9%d9%84%db%8c%d8%af_%d8%b1%d8%a7_%d8%a7%d8%b2_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_json_%d8%ad%d8%b0%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span><strong>\u06a9\u0644\u06cc\u062f \u0631\u0627 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>jq<\/strong> \u062f\u0633\u062a\u0648\u0631 \u0646\u0647 \u062a\u0646\u0647\u0627 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0628\u0644\u06a9\u0647 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0627 \u062d\u0630\u0641 \u06a9\u0644\u06cc\u062f \u062e\u0627\u0635 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f print \u062a\u0645\u0627\u0645 \u0645\u0642\u0627\u062f\u06cc\u0631 \u06a9\u0644\u06cc\u062f\u06cc <strong>Students.json<\/strong> \u0628\u0627 \u062d\u0630\u0641 \u0641\u0627\u06cc\u0644 <strong>\u062f\u0633\u062a\u0647 \u0627\u06cc<\/strong> \u06a9\u0644\u06cc\u062f <strong>\u0646\u0642\u0634\u0647<\/strong> \u0648 <strong>\u062f\u0644<\/strong> \u062a\u0627\u0628\u0639 \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f <strong>jq<\/strong> \u062f\u0633\u062a\u0648\u0631 \u0627\u0646\u062c\u0627\u0645 \u06a9\u0627\u0631<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;map(del(.batch))&#8217; Students.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32218\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"737\" height=\"349\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_826_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 737w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/8-13-300x142.png 300w\" data-lazy-sizes=\"(max-width: 737px) 100vw, 737px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_826_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32218\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_826_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"737\" height=\"349\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_826_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 737w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/8-13-300x142.png 300w\" sizes=\"(max-width: 737px) 100vw, 737px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%d8%a7%d8%b1%d8%b2%d8%b4_%d9%87%d8%a7%db%8c_%d9%86%d9%82%d8%b4%d9%87_%d8%a8%d8%b1%d8%af%d8%a7%d8%b1%db%8c\"><\/span><strong>\u0627\u0631\u0632\u0634 \u0647\u0627\u06cc \u0646\u0642\u0634\u0647 \u0628\u0631\u062f\u0627\u0631\u06cc<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u062f\u0648\u0646 \u062d\u0630\u0641 \u06a9\u0644\u06cc\u062f \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062a\u0627\u0628\u0639 \u0646\u0642\u0634\u0647 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 jq \u0628\u0631\u0627\u06cc \u0627\u0647\u062f\u0627\u0641 \u0645\u062e\u062a\u0644\u0641 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.  \u0645\u0642\u0627\u062f\u06cc\u0631 \u0639\u062f\u062f\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0639\u0645\u0644\u06a9\u0631\u062f \u0646\u0642\u0634\u0647 \u0627\u0641\u0632\u0627\u06cc\u0634 \u06cc\u0627 \u06a9\u0627\u0647\u0634 \u062f\u0627\u062f.  \u06cc\u06a9 \u0641\u0627\u06cc\u0644 JSON \u0628\u0627 \u0646\u0627\u0645 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f <strong>Number.json<\/strong> \u0628\u0627 \u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u062a\u0633\u062a \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0628\u0639\u062f\u06cc.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">[ 40,34,12,67,45]<\/div>\n<\/div>\n<p>\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0627 \u0647\u0631 \u0645\u0642\u062f\u0627\u0631 \u0634\u06cc 10 \u0639\u062f\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f <strong>\u0627\u0639\u062f\u0627\u062f\u060c json<\/strong>.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;map(.+10)&#8217; Numbers.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32219\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"739\" height=\"167\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_2_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 739w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/9-14-300x68.png 300w\" data-lazy-sizes=\"(max-width: 739px) 100vw, 739px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_2_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32219\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_2_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"739\" height=\"167\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057973_2_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 739w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/9-14-300x68.png 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" title=\"\"><\/p>\n<p>\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0645 \u06a9\u0631\u062f\u0646 10 \u0627\u0632 \u0645\u0642\u062f\u0627\u0631 \u0647\u0631 \u0634\u06cc\u0621 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f <strong>\u0627\u0639\u062f\u0627\u062f\u060c json<\/strong>.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;map(.-10)&#8217; Numbers.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32220\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"740\" height=\"174\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_646_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 740w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/10-12-300x71.png 300w\" data-lazy-sizes=\"(max-width: 740px) 100vw, 740px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_646_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32220\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_646_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"740\" height=\"174\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_646_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 740w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/10-12-300x71.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" title=\"\"><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%d8%ac%d8%b3%d8%aa%d8%ac%d9%88%db%8c_%d9%85%d9%82%d8%a7%d8%af%db%8c%d8%b1_%d8%a8%d8%b1_%d8%a7%d8%b3%d8%a7%d8%b3_%d8%b4%d8%a7%d8%ae%d8%b5_%d9%88_%d8%b7%d9%88%d9%84\"><\/span><strong>\u062c\u0633\u062a\u062c\u0648\u06cc \u0645\u0642\u0627\u062f\u06cc\u0631 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0627\u062e\u0635 \u0648 \u0637\u0648\u0644<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0634\u06cc\u0627\u0621 \u0631\u0627 \u0627\u0632 \u0641\u0627\u06cc\u0644 JSON \u0628\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0634\u0627\u062e\u0635 \u0648 \u0637\u0648\u0644 \u062e\u0627\u0635 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f.  \u06cc\u06a9 \u0641\u0627\u06cc\u0644 JSON \u0628\u0627 \u0646\u0627\u0645 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f <strong>colors.json<\/strong> \u0628\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0632\u06cc\u0631<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">[&#8220;Red&#8221;,&#8221;Green&#8221;,&#8221;Blue&#8221;,&#8221;Yellow&#8221;,&#8221;Purple&#8221;]<\/div>\n<\/div>\n<p>\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0648 \u0645\u0642\u062f\u0627\u0631 \u06a9\u0647 \u0627\u0632 \u0641\u0647\u0631\u0633\u062a \u0633\u0648\u0645 \u0641\u0627\u06cc\u0644 Colors.json \u0634\u0631\u0648\u0639 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;.[2:4]&#8217;colors.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32221\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"732\" height=\"121\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_585_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 732w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/11-12-300x50.png 300w\" data-lazy-sizes=\"(max-width: 732px) 100vw, 732px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_585_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32221\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_585_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"732\" height=\"121\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057974_585_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 732w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/11-12-300x50.png 300w\" sizes=\"(max-width: 732px) 100vw, 732px\" title=\"\"><\/p>\n<p>\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0637\u0648\u0644 \u06cc\u0627 \u0634\u0627\u062e\u0635 \u0634\u0631\u0648\u0639 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0627\u0632 \u0641\u0627\u06cc\u0644 JSON \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f.  \u062f\u0631 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631\u060c \u0641\u0642\u0637 \u062a\u0639\u062f\u0627\u062f \u0645\u0642\u062f\u0627\u0631 \u062f\u0627\u062f\u0647 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.  \u062f\u0631 \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a\u060c \u062f\u0633\u062a\u0648\u0631 \u0686\u0647\u0627\u0631 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0627\u0632 \u0627\u0648\u0644\u06cc\u0646 \u0641\u0647\u0631\u0633\u062a \u0631\u0646\u06af\u0647\u0627.json \u0645\u06cc \u062e\u0648\u0627\u0646\u062f.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;.[:4]&#8217;colors.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32222\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"732\" height=\"156\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_856_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 732w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/12-14-300x64.png 300w\" data-lazy-sizes=\"(max-width: 732px) 100vw, 732px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_856_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32222\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_856_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"732\" height=\"156\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_856_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 732w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/12-14-300x64.png 300w\" sizes=\"(max-width: 732px) 100vw, 732px\" title=\"\"><\/p>\n<p>\u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0631\u0627 \u0641\u0642\u0637 \u0628\u062f\u0648\u0646 \u0647\u06cc\u0686 \u0645\u0642\u062f\u0627\u0631 \u0637\u0648\u0644 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f <strong>jq<\/strong> \u062f\u0633\u062a\u0648\u0631 \u0648 \u0645\u0642\u062f\u0627\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0645\u062b\u0628\u062a \u06cc\u0627 \u0645\u0646\u0641\u06cc \u0628\u0627\u0634\u062f.  \u0627\u06af\u0631 \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0645\u062b\u0628\u062a \u0628\u0627\u0634\u062f\u060c \u0634\u0627\u062e\u0635 \u0627\u0632 \u0633\u0645\u062a \u0686\u067e \u0644\u06cc\u0633\u062a \u0648 \u0627\u0632 \u0635\u0641\u0631 \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u062f.  \u0627\u06af\u0631 \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0645\u0646\u0641\u06cc \u0628\u0627\u0634\u062f\u060c \u0634\u0627\u062e\u0635 \u0627\u0632 \u0633\u0645\u062a \u0631\u0627\u0633\u062a \u0644\u06cc\u0633\u062a \u0648 \u0627\u0632 \u06cc\u06a9 \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u062f.  \u062f\u0631 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 3- \u0627\u0633\u062a.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0633\u0647 \u0645\u0642\u062f\u0627\u0631 \u0622\u062e\u0631 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\">\n<div class=\"text codecolorer\">$ jq &#8216;.[-3:]&#8217;colors.json<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32223\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"734\" height=\"134\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_146_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 734w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/13-11-300x55.png 300w\" data-lazy-sizes=\"(max-width: 734px) 100vw, 734px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_146_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" http: title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32223\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_146_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png\" alt=\"\" width=\"734\" height=\"134\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/1704057975_146_\u062f\u0633\u062a\u0648\u0631-Bash-jq.png 734w, https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/11\/13-11-300x55.png 300w\" sizes=\"(max-width: 734px) 100vw, 734px\" title=\"\"><\/p>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0628\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0645\u0637\u0627\u0628\u0642 \u0628\u0627 \u0646\u06cc\u0627\u0632 \u062e\u0648\u062f \u062a\u062c\u0632\u06cc\u0647 \u06cc\u0627 \u062f\u0633\u062a\u06a9\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f\u060c \u062f\u0633\u062a\u0648\u0631 jq \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u06a9\u0627\u0631 \u062e\u0648\u062f \u0631\u0627 \u0622\u0633\u0627\u0646 \u062a\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/div>\n\n<div>\u0628\u0631\u0627\u06cc \u0646\u06af\u0627\u0631\u0634 \u0628\u062e\u0634\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0645\u062a\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062a\u0631\u062c\u0645\u0647 \u0645\u0627\u0634\u06cc\u0646\u06cc \u06cc\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc GPT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f <br \/>\n\u0644\u0637\u0641\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0645\u062a\u0646 \u06cc\u0627 \u0645\u0641\u0647\u0648\u0645 \u0646\u0628\u0648\u062f\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u06a9\u0645\u0647 \u06af\u0632\u0627\u0631\u0634 \u0646\u0648\u0634\u062a\u0627\u0631 \u06cc\u0627 \u062f\u0631\u062c \u0646\u0638\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0645\u0627 \u0631\u0627 \u0627\u0632 \u062c\u0632\u06cc\u06cc\u0627\u062a \u0645\u0634\u06a9\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u062f\u0647 \u0645\u0637\u0644\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0631\u0633\u06cc\u062f\u06af\u06cc \u06a9\u0646\u06cc\u0645\n<\/div>\n<p>\u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631: 1403-01-01 00:56:04<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;13099&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u062f\u0633\u062a\u0648\u0631 Bash jq&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0628\u0631\u0627\u06cc \u0627\u0647\u062f\u0627\u0641 \u0645\u062e\u062a\u0644\u0641\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0627\u0645\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc JSON \u0631\u0627 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0644 JSON \u062e\u0648\u0627\u0646\u062f bash \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u0627\u0646\u0646\u062f \u0633\u0627\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0645\u0639\u0645\u0648\u0644\u06cc. jq \u0627\u0628\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u062d\u0644 \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. jq \u0641\u0631\u0645\u0627\u0646 \u0645\u0627\u0646\u0646\u062f \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f sed \u0648 \u0628\u06cc\u062e\u06cc\u0627\u0644 \u0641\u0631\u0645\u0627\u0646\u060c \u0648 \u0627\u0632 \u06cc\u06a9 \u0632\u0628\u0627\u0646 \u062e\u0627\u0635 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":13100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2740,1062],"tags":[1061,2749,2741,2748],"class_list":["post-13099","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-programming","category-bash-script","tag--bash-scripting","tag--bash","tag---bash","tag-2748"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/13099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=13099"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/13099\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/13100"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=13099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=13099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=13099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}