{"id":26130,"date":"2025-07-20T06:45:26","date_gmt":"2025-07-20T03:45:26","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/"},"modified":"2025-07-20T06:45:26","modified_gmt":"2025-07-20T03:45:26","slug":"bashte-diziden-tekil-degerleri-alma-orneklerle","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/","title":{"rendered":"Bash&#8217;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)"},"content":{"rendered":"<p># Bash Dizilerinden Tekil De\u011ferleri Alma: Ad\u0131m Ad\u0131m K\u0131lavuz<\/p>\n<p>Bir\u00e7ok Bash beti\u011finde, bir dizinin i\u00e7indeki tekrar eden de\u011ferleri temizleyip yaln\u0131zca tekil de\u011ferleri elde etmek gerekebilir.  Bu i\u015flem, log dosyalar\u0131n\u0131n analizinden veri i\u015fleme g\u00f6revlerine kadar bir\u00e7ok senaryoda olduk\u00e7a faydal\u0131d\u0131r. Bu makalede, Bash dizilerinden tekil de\u011ferleri \u00e7\u0131karmak i\u00e7in ad\u0131m ad\u0131m bir k\u0131lavuz sunaca\u011f\u0131z; yeni ba\u015flayanlardan ileri seviye kullan\u0131c\u0131lar\u0131na kadar herkesin anlayabilece\u011fi \u015fekilde a\u00e7\u0131klamalar ve pratik \u00f6rneklerle.  Farkl\u0131 yakla\u015f\u0131mlar\u0131 kar\u015f\u0131la\u015ft\u0131rarak performans optimizasyonuna da de\u011finece\u011fiz.<\/p>\n<p><strong>Bash Dizileri ve Temel Kavramlar<\/strong><\/p>\n<p>Bash beti\u011finde bir dizi, ayn\u0131 tipteki birden fazla de\u011fi\u015fkeni tek bir de\u011fi\u015fken alt\u0131nda toplaman\u0131n bir yoludur.  Diziler s\u0131f\u0131rdan ba\u015flayarak indekslenir (0, 1, 2, &#8230;).  Dizilere de\u011fer eklemek ve eri\u015fmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler vard\u0131r. \u00d6rne\u011fin, <code class=\"language-\">array=(\"de\u011fer1\" \"de\u011fer2\" \"de\u011fer3\")<\/code> komutu ile bir dizi tan\u0131mlayabilirsiniz.  <code class=\"language-\">echo ${array[0]}<\/code> komutu ise dizinin ilk eleman\u0131n\u0131 ekrana yazd\u0131r\u0131r.  Tekrar eden de\u011ferler, bir dizide birden fazla kez bulunan de\u011ferlerdir.  Bu makalenin amac\u0131, bu tekrar eden de\u011ferleri eleyerek yaln\u0131zca tekil de\u011ferleri i\u00e7eren yeni bir dizi olu\u015fturmakt\u0131r.<\/p>\n<p><strong>Yeni Ba\u015flayanlar \u0130\u00e7in: Tekil De\u011ferleri \u00c7\u0131karmak i\u00e7in Basit Bir Y\u00f6ntem<\/strong><\/p>\n<p>En basit y\u00f6ntem, bir d\u00f6ng\u00fc kullanarak dizinin her eleman\u0131n\u0131 kontrol etmek ve tekil de\u011ferleri yeni bir diziye eklemektir.  Bu y\u00f6ntem, k\u00fc\u00e7\u00fck diziler i\u00e7in uygundur ancak b\u00fcy\u00fck dizilerde performans sorunlar\u0131na yol a\u00e7abilir.<\/p>\n<p><strong>Ad\u0131m 1:<\/strong> Tekil de\u011ferleri saklayacak bo\u015f bir dizi olu\u015fturun:<\/p>\n<pre class=\"language-bash\"><code>unique_array=()<\/code><\/pre>\n<p><strong>Ad\u0131m 2:<\/strong>  Giri\u015f dizisini d\u00f6ng\u00fc i\u00e7inde gezip her eleman\u0131n tekil olup olmad\u0131\u011f\u0131n\u0131 kontrol edin:<\/p>\n<pre class=\"language-bash\"><code>input_array=(&quot;elma&quot; &quot;armut&quot; &quot;elma&quot; &quot;muz&quot; &quot;armut&quot; &quot;kiraz&quot;)\n\nfor i in &quot;${input_array[@]}&quot;; do\n  found=0\n  for j in &quot;${unique_array[@]}&quot;; do\n    if [[ &quot;$i&quot; == &quot;$j&quot; ]]; then\n      found=1\n      break\n    fi\n  done\n  if [[ &quot;$found&quot; -eq 0 ]]; then\n    unique_array+=(&quot;$i&quot;)\n  fi\ndone<\/code><\/pre>\n<p><strong>Ad\u0131m 3:<\/strong> Tekil de\u011ferleri i\u00e7eren yeni diziyi yazd\u0131r\u0131n:<\/p>\n<pre class=\"language-bash\"><code>echo &quot;${unique_array[@]}&quot;  # \u00c7\u0131kt\u0131: elma armut muz kiraz<\/code><\/pre>\n<p>Bu kod, i\u00e7 i\u00e7e ge\u00e7mi\u015f d\u00f6ng\u00fcler kullanarak her eleman\u0131n tekil olup olmad\u0131\u011f\u0131n\u0131 kontrol eder.  <code class=\"language-\">found<\/code> de\u011fi\u015fkeni, eleman\u0131n daha \u00f6nce <code class=\"language-\">unique_array<\/code> dizisinde olup olmad\u0131\u011f\u0131n\u0131 takip eder.<\/p>\n<p><strong>Orta Seviye: Ger\u00e7ek Hayat \u00d6rne\u011fi ve Optimizasyon \u0130pu\u00e7lar\u0131<\/strong><\/p>\n<p>\u015eimdi, ger\u00e7ek bir senaryoya bakal\u0131m.  Bir log dosyas\u0131ndan IP adreslerini al\u0131p tekil IP adreslerini listeleyelim.  Log dosyas\u0131 \u015fu \u015fekilde olsun:<\/p>\n<pre class=\"language-\"><code>192.168.1.1 - - [10\/Oct\/2023:13:55:36 +0300] &quot;GET \/index.html HTTP\/1.1&quot; 200 1234\n10.0.0.2 - - [10\/Oct\/2023:13:56:00 +0300] &quot;GET \/about.html HTTP\/1.1&quot; 200 5678\n192.168.1.1 - - [10\/Oct\/2023:13:56:15 +0300] &quot;GET \/contact.html HTTP\/1.1&quot; 200 9012\n10.0.0.2 - - [10\/Oct\/2023:13:56:30 +0300] &quot;GET \/products.html HTTP\/1.1&quot; 200 3456\n172.16.0.1 - - [10\/Oct\/2023:13:56:45 +0300] &quot;GET \/services.html HTTP\/1.1&quot; 200 7890<\/code><\/pre>\n<p>Bu log dosyas\u0131ndan IP adreslerini al\u0131p tekil hale getirmek i\u00e7in a\u015fa\u011f\u0131daki beti\u011fi kullanabiliriz:<\/p>\n<pre class=\"language-bash\"><code>#!\/bin\/bash\n\nip_addresses=()\nwhile IFS=' ' read -r ip rest; do\n  ip_addresses+=(&quot;$ip&quot;)\ndone &lt; &lt;(awk '{print $1}' log.txt)\n\nunique_ips=()\nfor ip in &quot;${ip_addresses[@]}&quot;; do\n  found=0\n  for unique_ip in &quot;${unique_ips[@]}&quot;; do\n    if [[ &quot;$ip&quot; == &quot;$unique_ip&quot; ]]; then\n      found=1\n      break\n    fi\n  done\n  if [[ &quot;$found&quot; -eq 0 ]]; then\n    unique_ips+=(&quot;$ip&quot;)\n  fi\ndone\n\necho &quot;Tekil IP Adresleri:&quot;\necho &quot;${unique_ips[@]}&quot;<\/code><\/pre>\n<p>Bu \u00f6rnekte, <code class=\"language-\">awk<\/code> komutu log dosyas\u0131ndan IP adreslerini ay\u0131klar ve <code class=\"language-\">while<\/code> d\u00f6ng\u00fcs\u00fc ile <code class=\"language-\">ip_addresses<\/code> dizisine eklenir. Daha sonra, \u00f6nceki \u00f6rnekte oldu\u011fu gibi tekil IP adresleri <code class=\"language-\">unique_ips<\/code> dizisine eklenir.  Bu y\u00f6ntemin performans\u0131n\u0131 art\u0131rmak i\u00e7in, <code class=\"language-\">unique_ips<\/code> dizisinin elemanlar\u0131n\u0131 kontrol etmek yerine, <code class=\"language-\">grep<\/code> komutu veya <code class=\"language-\">awk<\/code> komutu gibi daha etkili ara\u00e7lar\u0131 kullanabiliriz.<\/p>\n<p><strong>\u0130leri D\u00fczey: Performans Analizi ve Edge Case&#8217;ler<\/strong><\/p>\n<p>Yukar\u0131daki y\u00f6ntemler, k\u00fc\u00e7\u00fck diziler i\u00e7in yeterli olsa da, b\u00fcy\u00fck dizilerde performans sorunlar\u0131na yol a\u00e7abilir.  B\u00fcy\u00fck veri k\u00fcmeleriyle \u00e7al\u0131\u015f\u0131rken, performans\u0131 iyile\u015ftirmek i\u00e7in daha verimli y\u00f6ntemler kullanmak gerekir.  \u00d6rne\u011fin, <code class=\"language-\">sort<\/code> ve <code class=\"language-\">uniq<\/code> komutlar\u0131n\u0131 kullanarak tekil de\u011ferleri h\u0131zl\u0131 bir \u015fekilde elde edebiliriz:<\/p>\n<pre class=\"language-bash\"><code>input_array=(&quot;elma&quot; &quot;armut&quot; &quot;elma&quot; &quot;muz&quot; &quot;armut&quot; &quot;kiraz&quot;)\nunique_array=($(echo &quot;${input_array[@]}&quot; | tr ' ' '\\n' | sort | uniq))\necho &quot;${unique_array[@]}&quot; # \u00c7\u0131kt\u0131: armut elma kiraz muz<\/code><\/pre>\n<p>Bu y\u00f6ntem, \u00f6nce dizi elemanlar\u0131n\u0131 yeni sat\u0131rlara ay\u0131r\u0131r (<code class=\"language-\">tr<\/code>), sonra s\u0131ralar (<code class=\"language-\">sort<\/code>) ve son olarak tekrar edenleri kald\u0131r\u0131r (<code class=\"language-\">uniq<\/code>).  Bu y\u00f6ntem, i\u00e7 i\u00e7e ge\u00e7mi\u015f d\u00f6ng\u00fclere g\u00f6re \u00e7ok daha h\u0131zl\u0131d\u0131r.<\/p>\n<p><strong>Edge Case&#8217;ler:<\/strong>  Bo\u015f diziler veya yaln\u0131zca tekil de\u011ferler i\u00e7eren diziler gibi durumlar\u0131 da ele almal\u0131y\u0131z.  Yukar\u0131daki y\u00f6ntemler bu durumlar i\u00e7in de sorunsuz \u00e7al\u0131\u015f\u0131r.  Ancak, dizi elemanlar\u0131 bo\u015fluk i\u00e7erdi\u011finde veya \u00f6zel karakterler i\u00e7erdi\u011finde ek \u00f6nlemler almak gerekebilir.  Bu durumlarda, <code class=\"language-\">tr<\/code> komutu ve <code class=\"language-\">sort<\/code> komutu gibi ara\u00e7lar\u0131n se\u00e7eneklerini kullanarak bu durumlar\u0131 ele alabilirsiniz.  \u00d6rne\u011fin, <code class=\"language-\">tr -s ' '<\/code> komutu, ard\u0131\u015f\u0131k bo\u015fluklar\u0131 tek bir bo\u015flukla de\u011fi\u015ftirir.<\/p>\n<p><strong>Bash Dizilerinden Tekil De\u011ferleri \u00c7\u0131karmak \u0130\u00e7in Daha Geli\u015fmi\u015f Teknikler<\/strong><\/p>\n<p>Daha karma\u015f\u0131k senaryolar i\u00e7in,  <code class=\"language-\">awk<\/code>, <code class=\"language-\">sed<\/code> ve hatta <code class=\"language-\">perl<\/code> gibi g\u00fc\u00e7l\u00fc ara\u00e7lardan yararlanabiliriz.  \u00d6rne\u011fin,  <code class=\"language-\">awk<\/code> kullanarak  tekrar eden de\u011ferleri filtrelemek ve tekil de\u011ferleri yeni bir diziye eklemek olduk\u00e7a verimlidir.  Bu y\u00f6ntem, \u00f6zellikle b\u00fcy\u00fck veri k\u00fcmeleri i\u00e7in \u00f6nemli performans art\u0131\u015f\u0131 sa\u011flayabilir.<\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131<\/strong><\/p>\n<p><strong>Yeni Ba\u015flayan:<\/strong>  \u0130\u00e7 i\u00e7e ge\u00e7mi\u015f d\u00f6ng\u00fcler kullanarak tekil de\u011ferleri bulma y\u00f6ntemi.  Basit bir dizi \u00f6rne\u011fi ile ad\u0131m ad\u0131m uygulama.<\/p>\n<p><strong>Orta:<\/strong>  Ger\u00e7ek d\u00fcnya senaryosu (log dosyas\u0131 analizi) ve optimizasyon ipu\u00e7lar\u0131 (daha etkili ara\u00e7lar\u0131n kullan\u0131m\u0131).  <code class=\"language-\">awk<\/code> ile IP adreslerinin ayr\u0131\u015ft\u0131r\u0131lmas\u0131 ve tekil hale getirilmesi \u00f6rne\u011fi.<\/p>\n<p><strong>\u0130leri D\u00fczey:<\/strong>  <code class=\"language-\">sort<\/code> ve <code class=\"language-\">uniq<\/code> komutlar\u0131n\u0131 kullanarak performans optimizasyonu.  Edge case&#8217;lerin ele al\u0131nmas\u0131 ve  <code class=\"language-\">awk<\/code>, <code class=\"language-\">sed<\/code> gibi ara\u00e7lar\u0131n kullan\u0131m\u0131yla daha karma\u015f\u0131k senaryolar\u0131n \u00e7\u00f6z\u00fcm\u00fc. Performans kar\u015f\u0131la\u015ft\u0131rmalar\u0131 ve farkl\u0131 y\u00f6ntemlerin avantajlar\u0131\/dezavantajlar\u0131.<\/p>\n<p><strong>Sonu\u00e7<\/strong><\/p>\n<p>Bash dizilerinden tekil de\u011ferleri \u00e7\u0131karmak i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur.  Se\u00e7ilecek y\u00f6ntem, dizi boyutuna ve performans gereksinimlerine ba\u011fl\u0131d\u0131r.  K\u00fc\u00e7\u00fck diziler i\u00e7in basit d\u00f6ng\u00fcler yeterli olabilirken, b\u00fcy\u00fck diziler i\u00e7in <code class=\"language-\">sort<\/code> ve <code class=\"language-\">uniq<\/code> veya <code class=\"language-\">awk<\/code> gibi daha verimli ara\u00e7lar kullan\u0131lmal\u0131d\u0131r.  Bu makalede ele al\u0131nan y\u00f6ntemler ve \u00f6rnekler,  Bash beti\u011fi yazarken tekil de\u011ferleri bulma konusunda size sa\u011flam bir temel sa\u011flayacakt\u0131r.  Daha fazla ipucu ve teknik bilgi i\u00e7in [Fatih Soysal&#8217;\u0131n web sitesini](https:\/\/fatihsoysal.com) ziyaret edebilirsiniz.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular<\/strong><\/p>\n<p>1. <strong>Bo\u015f bir dizi i\u00e7in ne olur?<\/strong> Bo\u015f bir dizi i\u00e7in, sonu\u00e7 yine bo\u015f bir dizi olacakt\u0131r.<br \/>\n2. <strong>Dizi elemanlar\u0131 bo\u015fluk i\u00e7eriyorsa ne yapmal\u0131y\u0131m?<\/strong> <code class=\"language-\">tr<\/code> komutunu kullanarak bo\u015fluklar\u0131 \u00f6zel bir karakterle de\u011fi\u015ftirebilir ve daha sonra tekrar \u00f6zel karakteri bo\u015flukla de\u011fi\u015ftirebilirsiniz.<br \/>\n3. <strong>Dizi elemanlar\u0131 \u00f6zel karakterler i\u00e7eriyorsa ne yapmal\u0131y\u0131m?<\/strong>  <code class=\"language-\">sort<\/code> ve <code class=\"language-\">uniq<\/code> komutlar\u0131n\u0131n se\u00e7eneklerini kullanarak \u00f6zel karakterleri ele alabilirsiniz.<br \/>\n4. <strong>Performans kar\u015f\u0131la\u015ft\u0131rmas\u0131 nas\u0131l yap\u0131l\u0131r?<\/strong>  <code class=\"language-\">time<\/code> komutu kullanarak farkl\u0131 y\u00f6ntemlerin \u00e7al\u0131\u015fma s\u00fcrelerini kar\u015f\u0131la\u015ft\u0131rabilirsiniz.<br \/>\n5. <strong>Daha karma\u015f\u0131k veri yap\u0131lar\u0131 i\u00e7in nas\u0131l bir yakla\u015f\u0131m izlenmelidir?<\/strong>  <code class=\"language-\">awk<\/code> veya <code class=\"language-\">perl<\/code> gibi g\u00fc\u00e7l\u00fc ara\u00e7lar daha karma\u015f\u0131k veri yap\u0131lar\u0131 i\u00e7in daha uygun olabilir.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# Bash Dizilerinden Tekil De\u011ferleri Alma: Ad\u0131m Ad\u0131m K\u0131lavuz Bir\u00e7ok Bash beti\u011finde, bir dizinin i\u00e7indeki tekrar eden de\u011ferleri&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1328],"tags":[],"class_list":{"0":"post-26130","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-bash","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bash&#039;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)<\/title>\n<meta name=\"description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash&#039;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-20T03:45:26+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Bash&#8217;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)\",\"datePublished\":\"2025-07-20T03:45:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\"},\"wordCount\":1037,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Bash\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\",\"name\":\"Bash'te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-07-20T03:45:26+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bash&#8217;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Bash'te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)","description":"Hi\u00e7bir etiketi bulunamad\u0131.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/","og_locale":"tr_TR","og_type":"article","og_title":"Bash'te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-07-20T03:45:26+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"7 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Bash&#8217;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)","datePublished":"2025-07-20T03:45:26+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/"},"wordCount":1037,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Bash"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/","url":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/","name":"Bash'te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-07-20T03:45:26+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/bashte-diziden-tekil-degerleri-alma-orneklerle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bash&#8217;te Diziden Tekil De\u011ferleri Alma (\u00d6rneklerle)"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=26130"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26130\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=26130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=26130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=26130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}