{"id":28862,"date":"2025-09-04T09:15:26","date_gmt":"2025-09-04T06:15:26","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/"},"modified":"2025-09-04T09:15:26","modified_gmt":"2025-09-04T06:15:26","slug":"powershell-how-to-get-last-item-in-array-ceviri","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/","title":{"rendered":"PowerShell: How to Get Last Item in Array (\u00c7eviri)"},"content":{"rendered":"<p># PowerShell&#8217;de Dizinin Son \u00d6\u011fesini Alma: Tam Bir Rehber<\/p>\n<p>PowerShell&#8217;de \u00e7al\u0131\u015f\u0131rken, s\u0131kl\u0131kla bir dizinin son \u00f6\u011fesine eri\u015fmeniz gerekebilir.  \u00d6rne\u011fin, bir g\u00fcnl\u00fck dosyas\u0131n\u0131n son girdisini okumak, bir i\u015flem listesindeki en son i\u015flemi almak veya bir veri k\u00fcmesinin son de\u011ferini analiz etmek isteyebilirsiniz.  Bu makalede, PowerShell&#8217;de dizinin son \u00f6\u011fesini alma y\u00f6ntemlerini, ba\u015flang\u0131\u00e7 seviyesinden ileri seviyeye kadar ad\u0131m ad\u0131m, ger\u00e7ek d\u00fcnya \u00f6rnekleriyle ve performans optimizasyon ipu\u00e7lar\u0131yla ele alaca\u011f\u0131z.  PowerShell&#8217;de dizilerin nas\u0131l y\u00f6netildi\u011fini \u00f6\u011frenmek ve performans\u0131n\u0131z\u0131 art\u0131rmak i\u00e7in okumaya devam edin.<\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131<\/strong><\/p>\n<p>Bu makale, PowerShell&#8217;de dizinin son \u00f6\u011fesini alma konusunda \u00fc\u00e7 farkl\u0131 seviyeye ayr\u0131lm\u0131\u015ft\u0131r:<\/p>\n<p><strong>Yeni Ba\u015flayan:<\/strong> Temel komutlar ve basit kod \u00f6rnekleri ile ba\u015flang\u0131\u00e7 seviyesindeki bir anlay\u0131\u015f sa\u011flanacakt\u0131r.<\/p>\n<p><strong>Orta Seviye:<\/strong> Ger\u00e7ek d\u00fcnya senaryolar\u0131 ve optimizasyon ipu\u00e7lar\u0131 ile daha karma\u015f\u0131k senaryolar ele al\u0131nacakt\u0131r.<\/p>\n<p><strong>\u0130leri Seviye:<\/strong> Performans analizi, s\u0131n\u0131r durumlar\u0131 ve daha geli\u015fmi\u015f teknikler incelenecektir.<\/p>\n<p><strong>PowerShell&#8217;de Diziler: Temel Kavramlar<\/strong><\/p>\n<p>PowerShell, nesne tabanl\u0131 bir kabuktur ve diziler, bu nesnelerin s\u0131ral\u0131 koleksiyonlar\u0131d\u0131r.  Bir dizi, ayn\u0131 veri t\u00fcr\u00fcnden veya farkl\u0131 veri t\u00fcrlerinden \u00f6\u011feler i\u00e7erebilir.  Dizileri olu\u015fturmak i\u00e7in bir\u00e7ok y\u00f6ntem vard\u0131r; en yayg\u0131n y\u00f6ntem, <code class=\"language-\">@()<\/code> operat\u00f6r\u00fcn\u00fc veya <code class=\"language-\">New-Object System.Array<\/code> cmdlet&#8217;ini kullanmakt\u0131r.  \u00d6rne\u011fin:<\/p>\n<pre class=\"language-powershell\"><code>$myArray = @(1, 2, 3, 4, 5)\n$myArray2 = &quot;elma&quot;, &quot;armut&quot;, &quot;muz&quot; # Otomatik olarak dizi olu\u015fturur\n$myArray3 = New-Object System.Array 5\nfor ($i = 0; $i -lt 5; $i++) { $myArray3[$i] = $i * 10 }<\/code><\/pre>\n<p>Bu \u00f6rneklerde, <code class=\"language-\">$myArray<\/code>, <code class=\"language-\">$myArray2<\/code> ve <code class=\"language-\">$myArray3<\/code> farkl\u0131 y\u00f6ntemlerle olu\u015fturulmu\u015f \u00fc\u00e7 farkl\u0131 diziyi temsil eder.  <code class=\"language-\">$myArray2<\/code> \u00f6rne\u011finde, virg\u00fcl kullanarak otomatik olarak bir dizi olu\u015fturdu\u011fumuza dikkat edin.<\/p>\n<p><strong>Dizinin Son \u00d6\u011fesini Alma: Basit Y\u00f6ntemler (Yeni Ba\u015flayan)<\/strong><\/p>\n<p>Dizinin son \u00f6\u011fesine eri\u015fmenin en basit yolu, dizinin uzunlu\u011funu kullanarak son indeksine ula\u015fmakt\u0131r.  PowerShell&#8217;de dizilerin indeksleri 0&#8217;dan ba\u015flar.  Bu nedenle, son \u00f6\u011fenin indeksi <code class=\"language-\">($myArray.Length - 1)<\/code> olacakt\u0131r.<\/p>\n<pre class=\"language-powershell\"><code>$myArray = @(1, 2, 3, 4, 5)\n$sonOge = $myArray[($myArray.Length - 1)]\nWrite-Host &quot;Dizinin son \u00f6\u011fesi: $sonOge&quot;<\/code><\/pre>\n<p>Bu kod, dizinin uzunlu\u011funu al\u0131r, 1 \u00e7\u0131kar\u0131r ve elde edilen indeksi kullanarak son \u00f6\u011feyi al\u0131r.  Bu y\u00f6ntem, basit ve anla\u015f\u0131l\u0131r olsa da, b\u00fcy\u00fck diziler i\u00e7in performans a\u00e7\u0131s\u0131ndan ideal olmayabilir.<\/p>\n<p><strong>Dizinin Son \u00d6\u011fesini Alma: -1 \u0130ndeksi (Orta Seviye)<\/strong><\/p>\n<p>PowerShell, dizilerde negatif indekslemeyi destekler.  <code class=\"language-\">-1<\/code> indeksi, dizinin son \u00f6\u011fesini, <code class=\"language-\">-2<\/code> indeksi ise sondan ikinci \u00f6\u011feyi g\u00f6sterir.  Bu y\u00f6ntem, \u00f6nceki y\u00f6nteme g\u00f6re daha temiz ve okunabilirdir.<\/p>\n<pre class=\"language-powershell\"><code>$myArray = @(1, 2, 3, 4, 5)\n$sonOge = $myArray[-1]\nWrite-Host &quot;Dizinin son \u00f6\u011fesi: $sonOge&quot;<\/code><\/pre>\n<p>Bu kod, do\u011frudan <code class=\"language-\">-1<\/code> indeksini kullanarak dizinin son \u00f6\u011fesini al\u0131r.  Bu, kodun daha okunabilir ve anla\u015f\u0131l\u0131r olmas\u0131n\u0131 sa\u011flar.  Bu y\u00f6ntem, \u00f6zellikle b\u00fcy\u00fck dizilerde performans a\u00e7\u0131s\u0131ndan daha verimli olabilir.<\/p>\n<p><strong>Ger\u00e7ek D\u00fcnya Senaryosu: Log Dosyas\u0131 Analizi (Orta Seviye)<\/strong><\/p>\n<p>Bir log dosyas\u0131n\u0131n son sat\u0131r\u0131n\u0131 okumak istedi\u011fimizi d\u00fc\u015f\u00fcnelim.  Log dosyas\u0131n\u0131 bir diziye okuyarak son \u00f6\u011feyi alabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>$logDosyasi = &quot;C:\\log.txt&quot;\n$logSatirlari = Get-Content $logDosyasi\n$sonSatir = $logSatirlari[-1]\nWrite-Host &quot;Log dosyas\u0131n\u0131n son sat\u0131r\u0131: $sonSatir&quot;<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">Get-Content<\/code> cmdlet&#8217;ini kullanarak log dosyas\u0131n\u0131n t\u00fcm sat\u0131rlar\u0131n\u0131 bir diziye okur ve ard\u0131ndan <code class=\"language-\">-1<\/code> indeksini kullanarak son sat\u0131r\u0131 al\u0131r.  Bu, log dosyalar\u0131n\u0131 analiz etmek i\u00e7in pratik bir \u00f6rnektir.  B\u00fcy\u00fck log dosyalar\u0131 i\u00e7in performans\u0131 iyile\u015ftirmek i\u00e7in <code class=\"language-\">Get-Content -Tail 1<\/code> kullanmak daha verimli olabilir.<\/p>\n<p><strong>Performans Optimizasyonu ve B\u00fcy\u00fck Diziler (\u0130leri Seviye)<\/strong><\/p>\n<p>\u00c7ok b\u00fcy\u00fck dizilerle \u00e7al\u0131\u015f\u0131rken, performans \u00f6nemli bir fakt\u00f6rd\u00fcr.  <code class=\"language-\">-1<\/code> indeksleme y\u00f6ntemi genellikle en h\u0131zl\u0131 y\u00f6ntemdir, ancak \u00e7ok b\u00fcy\u00fck dizilerde bile performans sorunlar\u0131 ya\u015fanabilir.  Bu durumlarda, daha geli\u015fmi\u015f teknikler kullan\u0131labilir.  \u00d6rne\u011fin,  <code class=\"language-\">System.Collections.ArrayList<\/code> gibi daha verimli koleksiyon s\u0131n\u0131flar\u0131 kullan\u0131labilir.  Ancak,  <code class=\"language-\">-1<\/code> indeksleme, \u00e7o\u011fu senaryoda yeterince h\u0131zl\u0131 ve kullan\u0131m\u0131 kolay oldu\u011fu i\u00e7in tercih edilebilir.<\/p>\n<p><strong>S\u0131n\u0131r Durumlar\u0131 ve Hata Y\u00f6netimi (\u0130leri Seviye)<\/strong><\/p>\n<p>Bo\u015f bir diziye eri\u015fmeye \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda, bir hata olu\u015facakt\u0131r.  Bu t\u00fcr durumlar\u0131 ele almak i\u00e7in hata y\u00f6netimi kullanmak \u00f6nemlidir.<\/p>\n<pre class=\"language-powershell\"><code>$myArray = @()\ntry {\n    $sonOge = $myArray[-1]\n    Write-Host &quot;Dizinin son \u00f6\u011fesi: $sonOge&quot;\n}\ncatch {\n    Write-Host &quot;Dizi bo\u015f!&quot;\n}<\/code><\/pre>\n<p>Bu kod, bo\u015f bir diziye eri\u015fmeye \u00e7al\u0131\u015f\u0131rken olu\u015fabilecek hatay\u0131 yakalar ve bir hata mesaj\u0131 g\u00f6r\u00fcnt\u00fcler.  Bu, uygulaman\u0131z\u0131n beklenmedik durumlarla daha sa\u011flam bir \u015fekilde ba\u015fa \u00e7\u0131kmas\u0131na yard\u0131mc\u0131 olur.<\/p>\n<p><strong>Pop\u00fcler PowerShell Cmdlet&#8217;leri ile Alternatif \u00c7\u00f6z\u00fcmler (\u0130leri Seviye)<\/strong><\/p>\n<p>Baz\u0131 durumlarda, <code class=\"language-\">Select-Object<\/code> cmdlet&#8217;i ile son \u00f6\u011feyi se\u00e7mek daha kullan\u0131\u015fl\u0131 olabilir:<\/p>\n<pre class=\"language-powershell\"><code>$myArray = @(1, 2, 3, 4, 5)\n$sonOge = $myArray | Select-Object -Last 1\nWrite-Host &quot;Dizinin son \u00f6\u011fesi: $($sonOge.PSObject.Properties.Value)&quot;<\/code><\/pre>\n<p>Bu y\u00f6ntem, \u00f6zellikle birden \u00e7ok \u00f6zelli\u011fe sahip nesnelerden olu\u015fan dizilerde,  istedi\u011finiz \u00f6zelli\u011fi filtrelemenize olanak tan\u0131r. Ancak, performans a\u00e7\u0131s\u0131ndan <code class=\"language-\">-1<\/code> indeksleme y\u00f6ntemi genellikle daha verimlidir.<\/p>\n<p><strong>Sonu\u00e7<\/strong><\/p>\n<p>PowerShell&#8217;de dizinin son \u00f6\u011fesini almak i\u00e7in birka\u00e7 y\u00f6ntem mevcuttur.  En basit y\u00f6ntem <code class=\"language-\">-1<\/code> indekslemeyi kullanmakt\u0131r, ancak b\u00fcy\u00fck diziler i\u00e7in performans optimizasyonuna dikkat etmek \u00f6nemlidir.  Hata y\u00f6netimi ve s\u0131n\u0131r durumlar\u0131n\u0131 ele almak, uygulaman\u0131z\u0131n g\u00fcvenilirli\u011fini art\u0131r\u0131r.  Bu makalede ele al\u0131nan y\u00f6ntemleri ve ipu\u00e7lar\u0131n\u0131 kullanarak, PowerShell&#8217;de dizi i\u015flemlerinde daha verimli ve g\u00fcvenilir kodlar yazabilirsiniz.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular:<\/strong><\/p>\n<p>1. <strong>Bo\u015f bir dizide <code class=\"language-\">-1<\/code> indeksi kullan\u0131rsam ne olur?<\/strong>  Bir hata olu\u015fur.  Hata y\u00f6netimi kullanarak bu durumu ele alman\u0131z gerekir.<\/p>\n<p>2. <strong>\u00c7ok b\u00fcy\u00fck diziler i\u00e7in en verimli y\u00f6ntem hangisidir?<\/strong>  Genellikle <code class=\"language-\">-1<\/code> indeksleme en verimlidir, ancak \u00e7ok b\u00fcy\u00fck dizilerde <code class=\"language-\">System.Collections.ArrayList<\/code> gibi daha verimli koleksiyon s\u0131n\u0131flar\u0131 d\u00fc\u015f\u00fcn\u00fclebilir.<\/p>\n<p>3. <strong><code class=\"language-\">Select-Object -Last 1<\/code> kullanman\u0131n avantajlar\u0131 nelerdir?<\/strong>  Birden fazla \u00f6zelli\u011fe sahip nesnelerden olu\u015fan dizilerde, belirli bir \u00f6zelli\u011fi se\u00e7menize olanak tan\u0131r.<\/p>\n<p>4. <strong>Dizinin son \u00f6\u011fesini de\u011fi\u015ftirmek istersem ne yapmal\u0131y\u0131m?<\/strong>  <code class=\"language-\">$myArray[-1] = \"yeni de\u011fer\"<\/code> gibi do\u011frudan atama yapabilirsiniz.<\/p>\n<p>5.  <strong>PowerShell dizileri hakk\u0131nda daha fazla bilgi nerede bulabilirim?<\/strong>  Microsoft&#8217;un resmi PowerShell belgelerine ve  [fatihsoysal.com](https:\/\/fatihsoysal.com) gibi kaynaklara bakabilirsiniz.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# PowerShell&#8217;de Dizinin Son \u00d6\u011fesini Alma: Tam Bir Rehber PowerShell&#8217;de \u00e7al\u0131\u015f\u0131rken, s\u0131kl\u0131kla bir dizinin son \u00f6\u011fesine eri\u015fmeniz gerekebilir.&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":[1319],"tags":[],"class_list":{"0":"post-28862","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-powershell","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>PowerShell: How to Get Last Item in Array (\u00c7eviri)<\/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\/powershell-how-to-get-last-item-in-array-ceviri\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell: How to Get Last Item in Array (\u00c7eviri)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-04T06:15: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=\"5 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"PowerShell: How to Get Last Item in Array (\u00c7eviri)\",\"datePublished\":\"2025-09-04T06:15:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/\"},\"wordCount\":926,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/\",\"name\":\"PowerShell: How to Get Last Item in Array (\u00c7eviri)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-09-04T06:15:26+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell: How to Get Last Item in Array (\u00c7eviri)\"}]},{\"@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":"PowerShell: How to Get Last Item in Array (\u00c7eviri)","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\/powershell-how-to-get-last-item-in-array-ceviri\/","og_locale":"tr_TR","og_type":"article","og_title":"PowerShell: How to Get Last Item in Array (\u00c7eviri)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-09-04T06:15:26+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"5 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"PowerShell: How to Get Last Item in Array (\u00c7eviri)","datePublished":"2025-09-04T06:15:26+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/"},"wordCount":926,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["PowerShell"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/","url":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/","name":"PowerShell: How to Get Last Item in Array (\u00c7eviri)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-09-04T06:15:26+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-get-last-item-in-array-ceviri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PowerShell: How to Get Last Item in Array (\u00c7eviri)"}]},{"@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\/28862","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=28862"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/28862\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=28862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=28862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=28862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}