{"id":26037,"date":"2025-07-18T09:45:22","date_gmt":"2025-07-18T06:45:22","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/"},"modified":"2025-07-18T09:45:22","modified_gmt":"2025-07-18T06:45:22","slug":"bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/","title":{"rendered":"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme"},"content":{"rendered":"<p># Bash&#8217;te Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme<\/p>\n<p>Bash betiklerinde s\u0131k\u00e7a kar\u015f\u0131la\u015ft\u0131\u011f\u0131m\u0131z bir problem, bir de\u011fi\u015fkenin \u00f6nceden tan\u0131mlanm\u0131\u015f bir listede olup olmad\u0131\u011f\u0131n\u0131 kontrol etmektir.  Bu makale, Bash&#8217;te bu i\u015flemi nas\u0131l ger\u00e7ekle\u015ftirece\u011finizi ad\u0131m ad\u0131m, yeni ba\u015flayanlardan ileri seviye kullan\u0131c\u0131lara kadar kapsayan bir rehber sunmaktad\u0131r.  \u00d6rnekler, ger\u00e7ek d\u00fcnya senaryolar\u0131ndan esinlenerek olu\u015fturulmu\u015f ve performans optimizasyonuna odaklan\u0131lm\u0131\u015ft\u0131r.<\/p>\n<p><strong>Bash&#8217;te Listeler ve De\u011fi\u015fkenler: Temel Kavramlar<\/strong><\/p>\n<p>Bash, do\u011frudan liste veri yap\u0131s\u0131na sahip de\u011fildir. Bunun yerine, liste benzeri davran\u0131\u015flar genellikle bo\u015flukla ayr\u0131lm\u0131\u015f de\u011ferlerden olu\u015fan bir string veya dizilerle (arrays) sa\u011flan\u0131r.  Bir de\u011fi\u015fkenin listede olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek i\u00e7in, bu string veya diziyi i\u015flememiz gerekir.  \u00d6rne\u011fin, <code class=\"language-\">meyveler=\"elma armut muz\"<\/code> gibi bir string de\u011fi\u015fkenimiz varsa, bu string i\u00e7inde &#8220;armut&#8221; kelimesinin olup olmad\u0131\u011f\u0131n\u0131 kontrol etmemiz gerekir.  Diziler ise daha yap\u0131land\u0131r\u0131lm\u0131\u015f bir yakla\u015f\u0131m sunar, ancak yine de temel mant\u0131k ayn\u0131 kal\u0131r.<\/p>\n<p>Bash&#8217;te de\u011fi\u015fken tan\u0131mlama <code class=\"language-\">de\u011fi\u015fken_ad\u0131=de\u011fer<\/code> \u015feklinde yap\u0131l\u0131r.  De\u011fi\u015fken adlar\u0131 harflerle ba\u015flamal\u0131 ve say\u0131, alt \u00e7izgi (_) i\u00e7erebilir.  De\u011ferler t\u0131rnak i\u00e7inde veya d\u0131\u015f\u0131nda olabilir.  T\u0131rnak kullan\u0131m\u0131, bo\u015fluk i\u00e7eren de\u011ferler i\u00e7in \u00f6nemlidir.<\/p>\n<p><strong>Bash&#8217;te Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme: Ad\u0131m Ad\u0131m Uygulamal\u0131 K\u0131lavuz (Yeni Ba\u015flayanlar \u0130\u00e7in)<\/strong><\/p>\n<p><strong>\u00d6rnek:<\/strong>  <code class=\"language-\">meyveler<\/code> ad\u0131nda bir string de\u011fi\u015fkenimiz olsun ve bu de\u011fi\u015fkenin i\u00e7inde &#8220;muz&#8221; kelimesinin olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek isteyelim.<\/p>\n<p><strong>Ad\u0131m 1:<\/strong> <code class=\"language-\">grep<\/code> komutunu kullanarak arama yap\u0131n. <code class=\"language-\">grep<\/code> komutu, belirtilen kal\u0131b\u0131 bir dosyada veya string&#8217;de arar.<\/p>\n<pre class=\"language-bash\"><code>meyveler=&quot;elma armut muz&quot;\nif grep -q &quot;muz&quot; &lt;&lt;&lt; &quot;$meyveler&quot;; then\n  echo &quot;Muz listede var!&quot;\nelse\n  echo &quot;Muz listede yok!&quot;\nfi<\/code><\/pre>\n<p>Bu kodda, <code class=\"language-\"><<< \"$meyveler\"<\/code>  <code class=\"language-\">grep<\/code> komutuna <code class=\"language-\">$meyveler<\/code> de\u011fi\u015fkeninin i\u00e7eri\u011fini standart girdi olarak sa\u011flar. <code class=\"language-\">-q<\/code> se\u00e7ene\u011fi,  <code class=\"language-\">grep<\/code>'in \u00e7\u0131kt\u0131s\u0131n\u0131 bast\u0131r\u0131r ve sadece durum kodunu (0:bulundu, 1:bulunmad\u0131) d\u00f6nd\u00fcr\u00fcr.  <code class=\"language-\">if<\/code> blo\u011fu bu durum kodunu kontrol ederek sonucu ekrana yazar.<\/p>\n<p><strong>Bir De\u011fi\u015fkenin Dizi \u0130\u00e7inde Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme (Orta Seviye)<\/strong><\/p>\n<p>Daha b\u00fcy\u00fck ve d\u00fczenli listeler i\u00e7in diziler kullanmak daha verimlidir.<\/p>\n<p><strong>\u00d6rnek:<\/strong>  Kullan\u0131c\u0131dan ald\u0131\u011f\u0131m\u0131z bir say\u0131n\u0131n bir dizi i\u00e7inde olup olmad\u0131\u011f\u0131n\u0131 kontrol edelim.<\/p>\n<pre class=\"language-bash\"><code>sayilar=(10 20 30 40 50)\nokunan_sayi=30\n\nfor i in &quot;${sayilar[@]}&quot;; do\n  if [[ &quot;$i&quot; == &quot;$okunan_sayi&quot; ]]; then\n    echo &quot;$okunan_sayi say\u0131 dizisinde bulundu.&quot;\n    exit 0\n  fi\ndone\n\necho &quot;$okunan_sayi say\u0131 dizisinde bulunamad\u0131.&quot;\nexit 1<\/code><\/pre>\n<p>Bu \u00f6rnekte, <code class=\"language-\">\"${sayilar[@]}\"<\/code> dizinin t\u00fcm elemanlar\u0131n\u0131 d\u00f6ng\u00fcye sokar.  <code class=\"language-\">[[ \"$i\" == \"$okunan_sayi\" ]]<\/code> ifadesi, her eleman\u0131n <code class=\"language-\">$okunan_sayi<\/code> ile e\u015fle\u015fip e\u015fle\u015fmedi\u011fini kontrol eder.  E\u015fle\u015fme bulunursa, d\u00f6ng\u00fc sonland\u0131r\u0131l\u0131r ve ilgili mesaj yazd\u0131r\u0131l\u0131r.<\/p>\n<p><strong>Ger\u00e7ek D\u00fcnya Senaryosu:  Kullan\u0131c\u0131 Yetkileri Kontrol\u00fc<\/strong><\/p>\n<p>Bir sistem y\u00f6netimi senaryosunda, bir kullan\u0131c\u0131n\u0131n belirli bir grupta olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek isteyebiliriz.<\/p>\n<pre class=\"language-bash\"><code>kullanici=&quot;fatih&quot;\ngruplar=(&quot;admin&quot; &quot;kullanici&quot; &quot;misafir&quot;)\n\nif id -nG &quot;$kullanici&quot; | grep -q -e &quot;${gruplar[@]}&quot; ; then\n  echo &quot;$kullanici kullan\u0131c\u0131s\u0131 yetkili gruplardan birinde bulunuyor.&quot;\nelse\n  echo &quot;$kullanici kullan\u0131c\u0131s\u0131 yetkili gruplardan hi\u00e7birinde bulunmuyor.&quot;\nfi<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">id -nG<\/code> komutu ile kullan\u0131c\u0131n\u0131n gruplar\u0131n\u0131 al\u0131r ve <code class=\"language-\">grep<\/code> ile bu gruplar\u0131n <code class=\"language-\">gruplar<\/code> dizisinde olup olmad\u0131\u011f\u0131n\u0131 kontrol eder.  <code class=\"language-\">-e<\/code> se\u00e7ene\u011fi, <code class=\"language-\">grep<\/code>'e birden fazla kal\u0131p arama imkan\u0131 sa\u011flar. Bu \u00f6rnek, daha karma\u015f\u0131k senaryolarda bile, liste kontrol\u00fcn\u00fc nas\u0131l kullanabilece\u011finizi g\u00f6sterir.<\/p>\n<p><strong>Performans Optimizasyonu ve \u0130leri Seviye Teknikler<\/strong><\/p>\n<p>B\u00fcy\u00fck listeler i\u00e7in, do\u011frusal arama yerine daha verimli algoritmalar kullanmak \u00f6nemlidir.  \u00d6rne\u011fin, bir associative array (bash'te bunu <code class=\"language-\">declare -A<\/code> ile olu\u015fturabilirsiniz) kullanarak O(1) karma\u015f\u0131kl\u0131kta arama yapabilirsiniz.<\/p>\n<pre class=\"language-bash\"><code>declare -A kullanici_yetkileri\nkullanici_yetkileri[&quot;admin&quot;]=&quot;true&quot;\nkullanici_yetkileri[&quot;kullanici&quot;]=&quot;true&quot;\n\nkullanici=&quot;fatih&quot;\ngrup=&quot;admin&quot;\n\nif [[ &quot;${kullanici_yetkileri[$grup]}&quot; == &quot;true&quot; ]]; then\n  echo &quot;$kullanici kullan\u0131c\u0131s\u0131 $grup grubunda.&quot;\nelse\n  echo &quot;$kullanici kullan\u0131c\u0131s\u0131 $grup grubunda de\u011fil.&quot;\nfi<\/code><\/pre>\n<p>Bu y\u00f6ntem, \u00f6zellikle \u00e7ok b\u00fcy\u00fck listeler i\u00e7in performans a\u00e7\u0131s\u0131ndan \u00f6nemli bir avantaj sa\u011flar.<\/p>\n<p><strong>Edge Case'ler ve Hata Y\u00f6netimi<\/strong><\/p>\n<p>Bo\u015f listeler, bo\u015f de\u011fi\u015fkenler veya beklenmedik girdiler gibi durumlar\u0131 ele almak \u00f6nemlidir.  Hata y\u00f6netimi i\u00e7in <code class=\"language-\">||<\/code> (veya) ve <code class=\"language-\">&&<\/code> (ve) operat\u00f6rlerini kullanarak kodun farkl\u0131 dallar\u0131n\u0131 kontrol edebilir ve hata mesajlar\u0131 verebilirsiniz.<\/p>\n<pre class=\"language-bash\"><code>liste=&quot;&quot;  # Bo\u015f liste\n\nif [[ -z &quot;$liste&quot; ]]; then\n  echo &quot;Liste bo\u015f!&quot;\n  exit 1\nfi\n\n# ... di\u011fer kodlar ...<\/code><\/pre>\n<p>Bu \u00f6rnek, bo\u015f bir liste durumunu kontrol eder ve hata mesaj\u0131 verir.<\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131<\/strong><\/p>\n<p><strong>Yeni Ba\u015flayan:<\/strong>  <code class=\"language-\">grep<\/code> ile string i\u00e7inde arama yapma (yukar\u0131daki ilk \u00f6rnek). Basit bir liste olu\u015fturma ve do\u011frusal arama yapma.<\/p>\n<p><strong>Orta Seviye:<\/strong> Diziler kullanarak liste olu\u015fturma ve d\u00f6ng\u00fc ile arama yapma. Ger\u00e7ek d\u00fcnya senaryolar\u0131 (kullan\u0131c\u0131 yetkileri kontrol\u00fc \u00f6rne\u011fi gibi).  Performans optimizasyonu i\u00e7in ipu\u00e7lar\u0131 (\u00f6rne\u011fin, gereksiz d\u00f6ng\u00fclerden ka\u00e7\u0131nma).<\/p>\n<p><strong>\u0130leri Seviye:<\/strong>  Associative array'ler kullanarak performans optimizasyonu.  Edge case'leri ele alma ve hata y\u00f6netimi.  Performans analizi i\u00e7in <code class=\"language-\">time<\/code> komutunun kullan\u0131m\u0131.  B\u00fcy\u00fck veri setleri i\u00e7in daha geli\u015fmi\u015f algoritmalar\u0131n ara\u015ft\u0131r\u0131lmas\u0131 (\u00f6rne\u011fin, binary search).<\/p>\n<p><strong>Sonu\u00e7<\/strong><\/p>\n<p>Bash'te bir de\u011fi\u015fkenin listede olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur.  Se\u00e7ilecek y\u00f6ntem, listenin b\u00fcy\u00fckl\u00fc\u011f\u00fc, veri yap\u0131s\u0131 ve performans gereksinimlerine ba\u011fl\u0131d\u0131r.  Bu makalede ele al\u0131nan \u00f6rnekler ve teknikler, farkl\u0131 senaryolarda bu i\u015flemi nas\u0131l ger\u00e7ekle\u015ftirece\u011finizi anlaman\u0131za yard\u0131mc\u0131 olacakt\u0131r.  Daha fazla Bash betikleme ipucu ve teknikleri i\u00e7in [fatihsoysal.com](https:\/\/fatihsoysal.com) adresini ziyaret edebilirsiniz.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular:<\/strong><\/p>\n<p>1. <strong>Bash'te listeler nas\u0131l tan\u0131mlan\u0131r?<\/strong>  Bo\u015flukla ayr\u0131lm\u0131\u015f stringler veya diziler kullan\u0131labilir.<br \/>\n2. <strong><code class=\"language-\">grep<\/code> komutunun <code class=\"language-\">-q<\/code> se\u00e7ene\u011fi ne i\u015fe yarar?<\/strong>  <code class=\"language-\">grep<\/code>'in \u00e7\u0131kt\u0131s\u0131n\u0131 bast\u0131r\u0131r ve sadece durum kodunu d\u00f6nd\u00fcr\u00fcr.<br \/>\n3. <strong>B\u00fcy\u00fck listeler i\u00e7in en verimli y\u00f6ntem nedir?<\/strong>  Associative array'ler kullanmak.<br \/>\n4. <strong>Hata y\u00f6netimi nas\u0131l yap\u0131l\u0131r?<\/strong>  <code class=\"language-\">if<\/code>, <code class=\"language-\">then<\/code>, <code class=\"language-\">else<\/code> yap\u0131lar\u0131n\u0131 ve <code class=\"language-\">&&<\/code>, <code class=\"language-\">||<\/code> operat\u00f6rlerini kullanarak.<br \/>\n5. <strong>Performans\u0131 nas\u0131l \u00f6l\u00e7ebilirim?<\/strong>  <code class=\"language-\">time<\/code> komutunu kullanarak.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# Bash&#8217;te Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme Bash betiklerinde s\u0131k\u00e7a kar\u015f\u0131la\u015ft\u0131\u011f\u0131m\u0131z bir problem, bir de\u011fi\u015fkenin \u00f6nceden&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-26037","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: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme<\/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\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-18T06:45:22+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=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme\",\"datePublished\":\"2025-07-18T06:45:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\"},\"wordCount\":897,\"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\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\",\"name\":\"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-07-18T06:45:22+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme\"}]},{\"@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: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme","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\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/","og_locale":"tr_TR","og_type":"article","og_title":"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-07-18T06:45:22+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme","datePublished":"2025-07-18T06:45:22+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/"},"wordCount":897,"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\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/","url":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/","name":"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-07-18T06:45:22+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/bash-bir-degiskenin-listede-olup-olmadigini-kontrol-etme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bash: Bir De\u011fi\u015fkenin Listede Olup Olmad\u0131\u011f\u0131n\u0131 Kontrol Etme"}]},{"@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\/26037","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=26037"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26037\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=26037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=26037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=26037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}