{"id":27399,"date":"2025-08-12T15:45:26","date_gmt":"2025-08-12T12:45:26","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/"},"modified":"2025-08-12T15:45:26","modified_gmt":"2025-08-12T12:45:26","slug":"powershell-metin-dosyasindan-degisken-okuma","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/","title":{"rendered":"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma"},"content":{"rendered":"<p># PowerShell&#8217;den Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma: Ad\u0131m Ad\u0131m K\u0131lavuz<\/p>\n<p><strong>Meta A\u00e7\u0131klamas\u0131:<\/strong> PowerShell ile metin dosyas\u0131ndan de\u011fi\u015fken okuma konusunda uzmanla\u015f\u0131n! Bu kapsaml\u0131 rehber, yeni ba\u015flayanlardan ileri seviye kullan\u0131c\u0131lara kadar herkes i\u00e7in ad\u0131m ad\u0131m k\u0131lavuz, ger\u00e7ek d\u00fcnya \u00f6rnekleri ve performans optimizasyon ipu\u00e7lar\u0131 sunuyor.  PowerShell yeteneklerinizi geli\u015ftirin ve verimlili\u011finizi art\u0131r\u0131n.<\/p>\n<p>Bir sistem y\u00f6neticisi olarak, sunucular\u0131n\u0131z\u0131n yap\u0131land\u0131rmas\u0131n\u0131 d\u00fczenli olarak denetlemeniz ve g\u00fcncellemeniz gerekebilir.  Bu yap\u0131land\u0131rma verileri genellikle metin dosyalar\u0131nda saklan\u0131r.  Peki ya bu verileri PowerShell kullanarak otomatik olarak okuyup, sisteminizde kullanman\u0131z gerekirse?  \u0130\u015fte tam bu noktada PowerShell&#8217;in metin dosyas\u0131ndan de\u011fi\u015fken okuma yetene\u011fi devreye giriyor. Bu makale, PowerShell kullanarak metin dosyalar\u0131ndan de\u011fi\u015fkenleri nas\u0131l etkili ve verimli bir \u015fekilde okuyabilece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayacakt\u0131r.<\/p>\n<p><strong>1. PowerShell ve Metin Dosyas\u0131 \u0130\u015fleme: Temel Kavramlar<\/strong><\/p>\n<p>PowerShell, Windows&#8217;un g\u00fc\u00e7l\u00fc komut sat\u0131r\u0131 kabu\u011fu ve betik dilidir.  Metin dosyalar\u0131yla etkile\u015fim kurmak i\u00e7in bir\u00e7ok yerle\u015fik cmdlet (komut) sunar.  Bu cmdlet&#8217;ler aras\u0131nda <code class=\"language-\">Get-Content<\/code>, <code class=\"language-\">Import-Csv<\/code>, <code class=\"language-\">Select-String<\/code> gibi dosya i\u00e7eri\u011fini okuyup i\u015flemenizi sa\u011flayan ara\u00e7lar bulunur.  Bu makalede, \u00f6zellikle <code class=\"language-\">Get-Content<\/code> cmdlet&#8217;ini ve d\u00fczenli ifadeleri (regular expressions) kullanarak metin dosyalar\u0131ndan de\u011fi\u015fkenleri nas\u0131l \u00e7\u0131karaca\u011f\u0131m\u0131z\u0131 g\u00f6rece\u011fiz.  Ayr\u0131ca, dosya yolunun do\u011fru bir \u015fekilde belirtilmesi, hata y\u00f6netimi ve performans optimizasyonu gibi \u00f6nemli konulara de\u011finece\u011fiz.  Ba\u015flamadan \u00f6nce, temel PowerShell kavramlar\u0131na a\u015fina olman\u0131z faydal\u0131 olacakt\u0131r.  E\u011fer PowerShell&#8217;e yeni ba\u015flad\u0131ysan\u0131z, [Fatih Soysal&#8217;\u0131n PowerShell e\u011fitimlerine](https:\/\/fatihsoysal.com) g\u00f6z atman\u0131z\u0131 tavsiye ederim.<\/p>\n<p><strong>2.  Yeni Ba\u015flayanlar \u0130\u00e7in: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma &#8211; Ad\u0131m Ad\u0131m<\/strong><\/p>\n<p><strong>\u00d6rnek Senaryo:<\/strong>  <code class=\"language-\">config.txt<\/code> adl\u0131 bir dosyam\u0131z olsun ve i\u00e7inde \u015fu bilgiler yer als\u0131n:<\/p>\n<pre class=\"language-\"><code>ServerName=Server01\nDatabaseName=MyDatabase\nPort=1433<\/code><\/pre>\n<p>Bu de\u011fi\u015fkenleri PowerShell&#8217;de nas\u0131l okuyabiliriz?<\/p>\n<p><strong>Ad\u0131m 1: <code class=\"language-\">Get-Content<\/code> ile Dosya \u0130\u00e7eri\u011fini Okumak<\/strong><\/p>\n<pre class=\"language-powershell\"><code>$content = Get-Content -Path &quot;C:\\path\\to\\config.txt&quot;<\/code><\/pre>\n<p>Bu komut, <code class=\"language-\">config.txt<\/code> dosyas\u0131n\u0131n i\u00e7eri\u011fini <code class=\"language-\">$content<\/code> de\u011fi\u015fkenine bir dizisi olarak y\u00fckler.  <code class=\"language-\">-Path<\/code> parametresi dosyan\u0131n yolunu belirtir.  Dosya yolunu kendi sisteminize g\u00f6re d\u00fczenleyin.<\/p>\n<p><strong>Ad\u0131m 2:  <code class=\"language-\">-split<\/code> Operat\u00f6r\u00fc ile Sat\u0131rlar\u0131 Ay\u0131rmak<\/strong><\/p>\n<pre class=\"language-powershell\"><code>$lines = $content -split &quot;<code class=\"language-\">n&quot;<\/code><\/pre>\n<p><\/code>-split \"<code class=\"language-\">n\"<\/code> operat\u00f6r\u00fc, her sat\u0131r\u0131 yeni bir eleman olarak i\u00e7eren bir dizi olu\u015fturur. <code class=\"language-\">\\n<\/code> karakteri sat\u0131r sonunu temsil eder.<\/p>\n<p><strong>Ad\u0131m 3:  Her Sat\u0131r\u0131 \u0130\u015fleyip De\u011fi\u015fkenleri Olu\u015fturmak<\/strong><\/p>\n<pre class=\"language-powershell\"><code>foreach ($line in $lines) {\n  $parts = $line -split &quot;=&quot;\n  if ($parts.Length -eq 2) {\n    New-Variable -Name $parts[0] -Value $parts[1]\n  }\n}<\/code><\/pre>\n<p>Bu d\u00f6ng\u00fc, her sat\u0131r\u0131 <code class=\"language-\">=<\/code> karakterinden ay\u0131r\u0131r ve sol taraf\u0131 de\u011fi\u015fken ad\u0131, sa\u011f taraf\u0131 de\u011fi\u015fken de\u011feri olarak kullanarak yeni bir de\u011fi\u015fken olu\u015fturur.  <code class=\"language-\">if<\/code> blo\u011fu, e\u015fittir i\u015faretinden \u00f6nce ve sonra bir de\u011fer olmas\u0131 durumunda \u00e7al\u0131\u015fmas\u0131n\u0131 sa\u011flar.<\/p>\n<p><strong>Ad\u0131m 4: De\u011fi\u015fkenleri Kontrol Etmek<\/strong><\/p>\n<pre class=\"language-powershell\"><code>Write-Host &quot;Sunucu Ad\u0131: $ServerName&quot;\nWrite-Host &quot;Veritaban\u0131 Ad\u0131: $DatabaseName&quot;\nWrite-Host &quot;Port: $Port&quot;<\/code><\/pre>\n<p>Bu komutlar, olu\u015fturulan de\u011fi\u015fkenlerin de\u011ferlerini ekrana yazd\u0131r\u0131r.<\/p>\n<p><strong>3. Orta Seviye: Ger\u00e7ek Hayat \u00d6rne\u011fi ve Optimizasyon \u0130pu\u00e7lar\u0131<\/strong><\/p>\n<p><strong>Ger\u00e7ek Hayat Senaryosu:<\/strong> Bir web sunucusunun yap\u0131land\u0131rma dosyas\u0131n\u0131 (\u00f6rne\u011fin, Apache'nin <code class=\"language-\">httpd.conf<\/code> dosyas\u0131) okuyup belirli parametreleri (\u00f6rne\u011fin, <code class=\"language-\">ServerName<\/code>, <code class=\"language-\">ListenPort<\/code>, <code class=\"language-\">DocumentRoot<\/code>) PowerShell ile almak istiyoruz.<\/p>\n<p>Bu durumda, d\u00fczenli ifadeler kullanarak daha esnek ve verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirebiliriz.  \u00d6rne\u011fin, <code class=\"language-\">ServerName<\/code> parametresini a\u015fa\u011f\u0131daki gibi bulabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>$content = Get-Content -Path &quot;C:\\path\\to\\httpd.conf&quot;\n$ServerName = ($content | Select-String -Pattern &quot;ServerName\\s*=\\s*(.*)&quot;) -replace &quot;ServerName\\s*=\\s*&quot;, &quot;&quot;<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">Select-String<\/code> cmdlet'i ile <code class=\"language-\">ServerName<\/code> sat\u0131r\u0131n\u0131 bulur ve <code class=\"language-\">-replace<\/code> operat\u00f6r\u00fc ile gereksiz k\u0131s\u0131mlar\u0131 temizler.  <code class=\"language-\">\\s*<\/code> ifadesi, s\u0131f\u0131r veya daha fazla bo\u015fluk karakterini temsil eder.  Bu yakla\u015f\u0131m, yap\u0131land\u0131rma dosyas\u0131n\u0131n format\u0131ndaki k\u00fc\u00e7\u00fck de\u011fi\u015fikliklere daha dayan\u0131kl\u0131d\u0131r.<\/p>\n<p><strong>Optimizasyon \u0130pu\u00e7lar\u0131:<\/strong><\/p>\n<p>* <strong>B\u00fcy\u00fck Dosyalar i\u00e7in:<\/strong> B\u00fcy\u00fck dosyalar i\u00e7in <code class=\"language-\">Get-Content<\/code> yerine <code class=\"language-\">StreamReader<\/code> kullanmak performans\u0131 art\u0131rabilir.<br \/>\n* <strong>Hata Y\u00f6netimi:<\/strong>  Dosyan\u0131n bulunamamas\u0131 veya okunamamas\u0131 gibi durumlar\u0131 ele almak i\u00e7in <code class=\"language-\">try...catch<\/code> bloklar\u0131 kullan\u0131n.<br \/>\n* <strong>Paralel \u0130\u015flem:<\/strong> \u00c7ok say\u0131da dosyay\u0131 i\u015flemeniz gerekiyorsa, paralel i\u015flem tekniklerini kullanarak s\u00fcreyi k\u0131saltabilirsiniz.<\/p>\n<p><strong>4. \u0130leri D\u00fczey: Performans Analizi ve Edge Case'ler<\/strong><\/p>\n<p><strong>Performans Analizi:<\/strong>  B\u00fcy\u00fck dosyalarla \u00e7al\u0131\u015f\u0131rken performans kritik \u00f6neme sahiptir.  <code class=\"language-\">Get-Content<\/code> cmdlet'i t\u00fcm dosyay\u0131 belle\u011fe y\u00fckler.  B\u00fcy\u00fck dosyalar i\u00e7in bu, performans sorunlar\u0131na yol a\u00e7abilir.  Bu durumda, <code class=\"language-\">StreamReader<\/code> s\u0131n\u0131f\u0131n\u0131 kullanarak dosyay\u0131 sat\u0131r sat\u0131r okumak daha etkili olabilir.<\/p>\n<pre class=\"language-powershell\"><code>$reader = New-Object System.IO.StreamReader(&quot;C:\\path\\to\\largefile.txt&quot;)\nwhile ($reader.Peek() -ne -1) {\n  $line = $reader.ReadLine()\n  # Sat\u0131r\u0131 i\u015fle\n}\n$reader.Close()<\/code><\/pre>\n<p>Bu kod, dosyay\u0131 sat\u0131r sat\u0131r okuyarak bellekteki y\u00fck\u00fc azalt\u0131r.<\/p>\n<p><strong>Edge Case'ler:<\/strong><\/p>\n<p>* <strong>Bo\u015f Sat\u0131rlar:<\/strong>  Dosyada bo\u015f sat\u0131rlar varsa, bunlar\u0131 do\u011fru bir \u015fekilde i\u015flemeyi sa\u011flamal\u0131s\u0131n\u0131z.<br \/>\n* <strong>Yorum Sat\u0131rlar\u0131:<\/strong>  Yap\u0131land\u0131rma dosyalar\u0131nda genellikle yorum sat\u0131rlar\u0131 bulunur.  Bunlar\u0131 filtrelemeniz gerekebilir.<br \/>\n* <strong>\u00d6zel Karakterler:<\/strong>  Dosya i\u00e7eri\u011finde \u00f6zel karakterler (\u00f6rne\u011fin, t\u0131rnak i\u015faretleri) varsa, bunlar\u0131 do\u011fru bir \u015fekilde ka\u00e7\u0131rman\u0131z gerekir.<br \/>\n* <strong>Farkl\u0131 Kodlamalar:<\/strong>  Dosyan\u0131n kodlamas\u0131 (UTF-8, ANSI vb.) farkl\u0131 olabilir.  <code class=\"language-\">Get-Content<\/code> cmdlet'inin <code class=\"language-\">Encoding<\/code> parametresini kullanarak bunu belirleyebilirsiniz.<\/p>\n<p><strong>5.  Nas\u0131l Farkl\u0131 Dosya Formatlar\u0131n\u0131 \u0130\u015fleyebilirim?<\/strong><\/p>\n<p>PowerShell, CSV, XML ve JSON gibi farkl\u0131 dosya formatlar\u0131n\u0131 i\u015flemek i\u00e7in \u00f6zel cmdlet'ler sunar.  \u00d6rne\u011fin, CSV dosyalar\u0131n\u0131 okumak i\u00e7in <code class=\"language-\">Import-Csv<\/code> cmdlet'ini kullanabilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>$data = Import-Csv -Path &quot;C:\\path\\to\\data.csv&quot;<\/code><\/pre>\n<p>Bu komut, CSV dosyas\u0131ndaki verileri bir nesne dizisine y\u00fckler.  Her nesne, CSV dosyas\u0131ndaki bir sat\u0131r\u0131 temsil eder.<\/p>\n<p><strong>6.  Hata Y\u00f6netimi Nas\u0131l Yap\u0131l\u0131r?<\/strong><\/p>\n<p>Dosya okuma i\u015flemlerinde hatalar olu\u015fabilir (\u00f6rne\u011fin, dosya bulunamad\u0131, eri\u015fim izni yok).  Bu hatalar\u0131 ele almak i\u00e7in <code class=\"language-\">try...catch<\/code> bloklar\u0131 kullan\u0131n:<\/p>\n<pre class=\"language-powershell\"><code>try {\n  $content = Get-Content -Path &quot;C:\\path\\to\\config.txt&quot;\n  # Dosya i\u00e7eri\u011fini i\u015fleyin\n}\ncatch {\n  Write-Error &quot;Dosya okunamad\u0131: $($_.Exception.Message)&quot;\n}<\/code><\/pre>\n<p><strong>7.  D\u00fczenli \u0130fadelerle Daha Karma\u015f\u0131k Senaryolar Nas\u0131l \u00c7\u00f6z\u00fcl\u00fcr?<\/strong><\/p>\n<p>D\u00fczenli ifadeler, karma\u015f\u0131k metin kal\u0131plar\u0131n\u0131 bulmak ve i\u015flemek i\u00e7in g\u00fc\u00e7l\u00fc bir ara\u00e7t\u0131r.  \u00d6rne\u011fin, bir yap\u0131land\u0131rma dosyas\u0131nda belirli bir parametre de\u011ferini bulmak i\u00e7in d\u00fczenli ifadeler kullanabilirsiniz.<\/p>\n<p><strong>8.  PowerShell'de Performans Nas\u0131l Optimize Edilir?<\/strong><\/p>\n<p>B\u00fcy\u00fck dosyalarla \u00e7al\u0131\u015f\u0131rken performans\u0131 optimize etmek i\u00e7in <code class=\"language-\">StreamReader<\/code> kullan\u0131n, paralel i\u015flem tekniklerini uygulay\u0131n ve gereksiz i\u015flemleri azalt\u0131n.<\/p>\n<p><strong>9.  G\u00fcvenlik A\u00e7\u0131klar\u0131na Kar\u015f\u0131 Nas\u0131l Korunurum?<\/strong><\/p>\n<p>G\u00fcvenlik a\u00e7\u0131klar\u0131n\u0131 \u00f6nlemek i\u00e7in, dosya yollar\u0131n\u0131 do\u011frulay\u0131n, kullan\u0131c\u0131 girdilerini do\u011frulay\u0131n ve g\u00fcvenli kodlama uygulamalar\u0131na uyun.<\/p>\n<p><strong>10. S\u0131k\u00e7a Sorulan Sorular (SSS)<\/strong><\/p>\n<p>* <strong>PowerShell'de hangi metin dosyas\u0131 formatlar\u0131n\u0131 okuyabilirim?<\/strong>  PowerShell, d\u00fcz metin dosyalar\u0131 (.txt), CSV dosyalar\u0131, XML dosyalar\u0131 ve JSON dosyalar\u0131 gibi bir\u00e7ok format\u0131 okuyabilir.<\/p>\n<p>* <strong>B\u00fcy\u00fck dosyalarla \u00e7al\u0131\u015f\u0131rken performans\u0131 nas\u0131l art\u0131rabilirim?<\/strong>  <code class=\"language-\">StreamReader<\/code> kullanarak dosyay\u0131 sat\u0131r sat\u0131r okuyun, paralel i\u015flem tekniklerini uygulay\u0131n ve gereksiz i\u015flemleri en aza indirin.<\/p>\n<p>* <strong>Dosya bulunamad\u0131 hatas\u0131 nas\u0131l ele al\u0131n\u0131r?<\/strong>  <code class=\"language-\">try...catch<\/code> bloklar\u0131 kullanarak hata y\u00f6netimi uygulay\u0131n.<\/p>\n<p>* <strong>D\u00fczenli ifadeleri nas\u0131l kullanabilirim?<\/strong>  <code class=\"language-\">Select-String<\/code> cmdlet'i ile d\u00fczenli ifadeleri kullanarak metin kal\u0131plar\u0131n\u0131 aray\u0131n ve i\u015flevin.<\/p>\n<p>* <strong>Hangi kodlama t\u00fcrlerini destekliyor?<\/strong> <code class=\"language-\">Get-Content<\/code> cmdlet'inin <code class=\"language-\">Encoding<\/code> parametresini kullanarak farkl\u0131 kodlama t\u00fcrlerini belirleyebilirsiniz.<\/p>\n<p><strong>Sonu\u00e7:<\/strong><\/p>\n<p>Bu makale, PowerShell kullanarak metin dosyalar\u0131ndan de\u011fi\u015fken okuma konusunda kapsaml\u0131 bir rehber sunmaktad\u0131r.  Ba\u015flang\u0131\u00e7 seviyesinden ileri seviyeye kadar ad\u0131m ad\u0131m ilerleyerek, ger\u00e7ek d\u00fcnya \u00f6rnekleri ve performans optimizasyon ipu\u00e7lar\u0131yla zenginle\u015ftirilmi\u015f bir \u00f6\u011frenme deneyimi sa\u011flamay\u0131 ama\u00e7lad\u0131k.  Umar\u0131z bu rehber, PowerShell yeteneklerinizi geli\u015ftirmenize ve i\u015flerinizi daha verimli hale getirmenize yard\u0131mc\u0131 olur.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# PowerShell&#8217;den Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma: Ad\u0131m Ad\u0131m K\u0131lavuz Meta A\u00e7\u0131klamas\u0131: PowerShell ile metin dosyas\u0131ndan de\u011fi\u015fken okuma konusunda&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-27399","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: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma<\/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-metin-dosyasindan-degisken-okuma\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-12T12: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\/powershell-metin-dosyasindan-degisken-okuma\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma\",\"datePublished\":\"2025-08-12T12:45:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/\"},\"wordCount\":1209,\"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-metin-dosyasindan-degisken-okuma\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/\",\"name\":\"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-08-12T12:45:26+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma\"}]},{\"@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: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma","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-metin-dosyasindan-degisken-okuma\/","og_locale":"tr_TR","og_type":"article","og_title":"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-08-12T12: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\/powershell-metin-dosyasindan-degisken-okuma\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma","datePublished":"2025-08-12T12:45:26+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/"},"wordCount":1209,"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-metin-dosyasindan-degisken-okuma\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/","url":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/","name":"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-08-12T12:45:26+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-metin-dosyasindan-degisken-okuma\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PowerShell: Metin Dosyas\u0131ndan De\u011fi\u015fken Okuma"}]},{"@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\/27399","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=27399"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/27399\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=27399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=27399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=27399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}