{"id":26455,"date":"2025-07-25T12:45:25","date_gmt":"2025-07-25T09:45:25","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/"},"modified":"2025-07-25T12:45:25","modified_gmt":"2025-07-25T09:45:25","slug":"powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/","title":{"rendered":"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme"},"content":{"rendered":"<p># PowerShell: Select-String ile \u0130lk E\u015fle\u015fmeyi Bulma<\/p>\n<p>Log dosyalar\u0131nda hata mesaj\u0131 m\u0131 ar\u0131yorsunuz?  Binlerce sat\u0131rl\u0131k bir metin dosyas\u0131nda belirli bir kelimeyi mi bulmaya \u00e7al\u0131\u015f\u0131yorsunuz?  PowerShell&#8217;in g\u00fc\u00e7l\u00fc <code class=\"language-\">Select-String<\/code> cmdlet&#8217;\u0131, bu ve benzeri g\u00f6revleri kolayl\u0131kla halletmenize yard\u0131mc\u0131 olur. Ancak, t\u00fcm e\u015fle\u015fmeleri listelemek yerine sadece ilk e\u015fle\u015fmeyi bulman\u0131z gerekiyorsa, i\u015fler biraz daha karma\u015f\u0131kla\u015fabilir. Bu makalede, <code class=\"language-\">Select-String<\/code> cmdlet&#8217;\u0131n\u0131 kullanarak sadece ilk e\u015fle\u015fmeyi nas\u0131l d\u00f6nd\u00fcrece\u011finizi, performans\u0131 nas\u0131l optimize edece\u011finizi ve kar\u015f\u0131la\u015fabilece\u011finiz zor durumlar\u0131 nas\u0131l ele alaca\u011f\u0131n\u0131z\u0131 ad\u0131m ad\u0131m \u00f6\u011freneceksiniz.  PowerShell&#8217;de metin i\u015fleme becerilerinizi bir \u00fcst seviyeye ta\u015f\u0131mak i\u00e7in okumaya devam edin!<\/p>\n<p><strong>1. PowerShell ve Select-String Cmdlet&#8217;\u0131 ile Tan\u0131\u015fma<\/strong><\/p>\n<p>PowerShell, Windows i\u015fletim sistemlerinde komut sat\u0131r\u0131 ve betik dili olarak kullan\u0131lan g\u00fc\u00e7l\u00fc bir ara\u00e7t\u0131r.  <code class=\"language-\">Select-String<\/code> cmdlet&#8217;\u0131 ise, metin dosyalar\u0131nda veya metin dizilerinde belirli kal\u0131plar\u0131 (pattern) aramak i\u00e7in kullan\u0131l\u0131r.  Temel kullan\u0131m\u0131 olduk\u00e7a basittir:  <code class=\"language-\">Select-String -Path <DosyaYolu> -Pattern <AranacakKal\u0131p><\/code> komutu, belirtilen dosyada belirtilen kal\u0131ba uyan t\u00fcm sat\u0131rlar\u0131 d\u00f6nd\u00fcr\u00fcr.  Ancak,  genellikle sadece ilk buldu\u011fu e\u015fle\u015fmeyi kullanmak isteriz.  Bu noktada,  <code class=\"language-\">Select-String<\/code>&#8216;in \u00e7\u0131kt\u0131s\u0131n\u0131 manip\u00fcle etmemiz gerekir.<\/p>\n<p><strong>2. Yeni Ba\u015flayanlar \u0130\u00e7in: \u0130lk E\u015fle\u015fmeyi Bulman\u0131n Temel Yolu<\/strong><\/p>\n<p>\u0130lk e\u015fle\u015fmeyi bulmak i\u00e7in <code class=\"language-\">Select-String<\/code>&#8216;in <code class=\"language-\">-List<\/code> parametresini kullan\u0131p, sonras\u0131nda <code class=\"language-\">[0]<\/code> indexi ile ilk eleman\u0131 se\u00e7ebiliriz. A\u015fa\u011f\u0131daki \u00f6rnekte, &#8220;log.txt&#8221; dosyas\u0131nda &#8220;Hata&#8221; kelimesini arar ve sadece ilk buldu\u011fu sat\u0131r\u0131 ekrana yazd\u0131r\u0131r:<\/p>\n<pre class=\"language-powershell\"><code>(Select-String -Path &quot;.\\log.txt&quot; -Pattern &quot;Hata&quot; -List)[0]<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">Select-String<\/code>&#8216;in d\u00f6nd\u00fcrd\u00fc\u011f\u00fc nesne koleksiyonunun ilk eleman\u0131n\u0131 se\u00e7er.  E\u011fer &#8220;Hata&#8221; kelimesi dosyada yoksa, hata al\u0131rs\u0131n\u0131z.  Bu durumu ele almak i\u00e7in <code class=\"language-\">try-catch<\/code> blo\u011fu kullanabilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>try {\n  (Select-String -Path &quot;.\\log.txt&quot; -Pattern &quot;Hata&quot; -List)[0]\n}\ncatch {\n  Write-Host &quot;Hata kelimesi log dosyas\u0131nda bulunamad\u0131.&quot;\n}<\/code><\/pre>\n<p>Bu basit yakla\u015f\u0131m, yeni ba\u015flayanlar i\u00e7in ideal bir ba\u015flang\u0131\u00e7 noktas\u0131d\u0131r.  Ancak, daha b\u00fcy\u00fck dosyalarda performans sorunlar\u0131na yol a\u00e7abilir.<\/p>\n<p><strong>3. Orta Seviye: Ger\u00e7ek Hayat \u00d6rne\u011fi ve Optimizasyon \u0130pu\u00e7lar\u0131<\/strong><\/p>\n<p>\u015eimdi, daha ger\u00e7ek\u00e7i bir senaryo ele alal\u0131m.  Bir web sunucusunun log dosyas\u0131nda belirli bir IP adresinden gelen ilk eri\u015fim tarihini bulmak istedi\u011fimizi varsayal\u0131m.  Log dosyas\u0131 olduk\u00e7a b\u00fcy\u00fck olabilir.  A\u015fa\u011f\u0131daki kod,  &#8220;192.168.1.100&#8221; IP adresini arayacak ve ilk e\u015fle\u015fmeyi d\u00f6nd\u00fcrecektir:<\/p>\n<pre class=\"language-powershell\"><code>$logFilePath = &quot;C:\\webserver\\access.log&quot;\n$ipAddress = &quot;192.168.1.100&quot;\n\ntry {\n  $firstMatch = (Select-String -Path $logFilePath -Pattern $ipAddress -List)[0]\n  Write-Host &quot;\u0130lk e\u015fle\u015fme: $($firstMatch.Line)&quot;\n}\ncatch {\n  Write-Host &quot;Belirtilen IP adresi log dosyas\u0131nda bulunamad\u0131.&quot;\n}<\/code><\/pre>\n<p><strong>Optimizasyon \u0130pu\u00e7lar\u0131:<\/strong><\/p>\n<p>* <strong><code class=\"language-\">-SimpleMatch<\/code> Parametresi:<\/strong>  Karma\u015f\u0131k d\u00fczenli ifadeler yerine basit e\u015fle\u015fmeler kullanmak performans\u0131 art\u0131r\u0131r.  E\u011fer d\u00fczenli ifadeye ihtiyac\u0131n\u0131z yoksa, <code class=\"language-\">-SimpleMatch<\/code> parametresini kullan\u0131n.<br \/>\n* <strong>Dosya \u0130\u015fleme:<\/strong>  \u00c7ok b\u00fcy\u00fck dosyalarda, dosyay\u0131 sat\u0131r sat\u0131r okuyup her sat\u0131rda e\u015fle\u015fme aramak daha verimli olabilir.  Bu, <code class=\"language-\">Get-Content<\/code> cmdlet&#8217;\u0131 ile yap\u0131labilir.<br \/>\n* <strong><code class=\"language-\">-CaseSensitive<\/code> Parametresi:<\/strong> B\u00fcy\u00fck\/k\u00fc\u00e7\u00fck harf duyarl\u0131l\u0131\u011f\u0131na ihtiyac\u0131n\u0131z yoksa, <code class=\"language-\">-CaseSensitive<\/code> parametresini <code class=\"language-\">$false<\/code> olarak ayarlay\u0131n.<\/p>\n<p><strong>4. Nas\u0131l Yap\u0131l\u0131r? B\u00fcy\u00fck Dosyalarda Performans\u0131 Art\u0131rma<\/strong><\/p>\n<p>\u00c7ok b\u00fcy\u00fck log dosyalar\u0131nda <code class=\"language-\">Select-String<\/code>&#8216;in performans\u0131n\u0131 iyile\u015ftirmek i\u00e7in daha geli\u015fmi\u015f teknikler kullanmal\u0131y\u0131z.  \u00d6rne\u011fin, dosyay\u0131 sat\u0131r sat\u0131r okuyup, ilk e\u015fle\u015fmeyi buldu\u011fumuz anda i\u015flemi durdurabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>$logFilePath = &quot;C:\\webserver\\access.log&quot;\n$ipAddress = &quot;192.168.1.100&quot;\n$firstMatch = $null\n\nGet-Content $logFilePath | ForEach-Object {\n  if ($_ -match $ipAddress) {\n    $firstMatch = $_\n    break\n  }\n}\n\nif ($firstMatch) {\n  Write-Host &quot;\u0130lk e\u015fle\u015fme: $firstMatch&quot;\n} else {\n  Write-Host &quot;Belirtilen IP adresi log dosyas\u0131nda bulunamad\u0131.&quot;\n}<\/code><\/pre>\n<p>Bu y\u00f6ntem, dosyan\u0131n tamam\u0131n\u0131 belle\u011fe y\u00fcklemek yerine, sat\u0131r sat\u0131r okuyarak ilk e\u015fle\u015fmeyi buldu\u011funda i\u015flemi durdurur ve bellek kullan\u0131m\u0131n\u0131 azalt\u0131r.  Bu, \u00f6zellikle \u00e7ok b\u00fcy\u00fck dosyalar i\u00e7in \u00f6nemli bir performans art\u0131\u015f\u0131 sa\u011flar.  Bu teknik, Fatih Soysal&#8217;\u0131n [PowerShell performans optimizasyonu](https:\/\/fatihsoysal.com\/powershell-performans-optimizasyonu) hakk\u0131ndaki yaz\u0131lar\u0131nda da detayl\u0131 olarak a\u00e7\u0131klanmaktad\u0131r.<\/p>\n<p><strong>5. \u0130leri D\u00fczey: Performans Analizi ve Edge Case&#8217;ler<\/strong><\/p>\n<p>Performans analizi i\u00e7in, <code class=\"language-\">Measure-Command<\/code> cmdlet&#8217;\u0131n\u0131 kullanarak kod blo\u011funuzun \u00e7al\u0131\u015fma s\u00fcresini \u00f6l\u00e7ebilirsiniz.  \u00d6rne\u011fin:<\/p>\n<pre class=\"language-powershell\"><code>Measure-Command {\n  # Yukar\u0131daki kod blo\u011funu buraya yap\u0131\u015ft\u0131r\u0131n\n}<\/code><\/pre>\n<p>Bu, kodunuzun ne kadar s\u00fcrd\u00fc\u011f\u00fcn\u00fc anlaman\u0131za ve farkl\u0131 optimizasyon tekniklerinin etkisini \u00f6l\u00e7menize yard\u0131mc\u0131 olur.<\/p>\n<p><strong>Edge Case&#8217;ler:<\/strong><\/p>\n<p>* <strong>Bo\u015f Dosyalar:<\/strong>  E\u011fer log dosyas\u0131 bo\u015fsa, <code class=\"language-\">Select-String<\/code> hata vermez ancak bo\u015f bir koleksiyon d\u00f6nd\u00fcr\u00fcr.  Bu durumda, <code class=\"language-\">[0]<\/code> indexi kullanmaya \u00e7al\u0131\u015fmak hata verecektir.  Bu y\u00fczden, her zaman sonu\u00e7lar\u0131 kontrol etmelisiniz.<br \/>\n* <strong>Karma\u015f\u0131k D\u00fczenli \u0130fadeler:<\/strong>  Karma\u015f\u0131k d\u00fczenli ifadeler performans\u0131 olumsuz etkileyebilir.  M\u00fcmk\u00fcn oldu\u011funca basit d\u00fczenli ifadeler kullanmaya \u00e7al\u0131\u015f\u0131n.<br \/>\n* <strong>\u00d6zel Karakterler:<\/strong>  D\u00fczenli ifadelerde \u00f6zel karakterleri (\u00f6rne\u011fin, <code class=\"language-\">.<\/code> , <code class=\"language-\">*<\/code>, <code class=\"language-\">?<\/code>, <code class=\"language-\">+<\/code>, <code class=\"language-\">[<\/code>, <code class=\"language-\">]<\/code>, <code class=\"language-\">(<\/code>, <code class=\"language-\">)<\/code>, <code class=\"language-\">^<\/code>, <code class=\"language-\">$<\/code>, <code class=\"language-\">|<\/code>, <code class=\"language-\">\\<\/code>) do\u011fru \u015fekilde ka\u00e7\u0131rman\u0131z gerekir.<\/p>\n<p><strong>6.  Ger\u00e7ek D\u00fcnya Senaryolar\u0131: Vaka Analizleri<\/strong><\/p>\n<p><strong>Vaka 1: Hata Loglar\u0131n\u0131 \u0130nceleme:<\/strong>  Bir uygulama log dosyas\u0131nda &#8220;Exception&#8221; kelimesini aray\u0131p, ilk hata mesaj\u0131n\u0131 bulman\u0131z gerekiyor.  Yukar\u0131daki teknikleri kullanarak, sadece ilk hata mesaj\u0131n\u0131 al\u0131p, daha fazla i\u015flem yapabilirsiniz.<\/p>\n<p><strong>Vaka 2:  Web Sunucusu Loglar\u0131n\u0131 Analiz:<\/strong>  Bir web sunucusunun log dosyas\u0131nda belirli bir kullan\u0131c\u0131 taraf\u0131ndan yap\u0131lan ilk iste\u011fi bulman\u0131z gerekiyor.  Kullan\u0131c\u0131 ad\u0131n\u0131 i\u00e7eren bir d\u00fczenli ifade kullanarak, ilk iste\u011fi tespit edebilirsiniz.<\/p>\n<p><strong>Vaka 3:  B\u00fcy\u00fck Metin Dosyalar\u0131n\u0131 \u0130\u015fleme:<\/strong>  Bir roman veya b\u00fcy\u00fck bir metin dosyas\u0131nda belirli bir kelimeyi aray\u0131p, ilk ge\u00e7ti\u011fi sat\u0131r\u0131 bulman\u0131z gerekiyor.  <code class=\"language-\">Get-Content<\/code> ile sat\u0131r sat\u0131r okuma y\u00f6ntemi burada \u00e7ok faydal\u0131 olacakt\u0131r.<\/p>\n<p><strong>7.  PowerShell&#8217;de Metin \u0130\u015fleme \u0130pu\u00e7lar\u0131 ve P\u00fcf Noktalar\u0131<\/strong><\/p>\n<p>* <code class=\"language-\">-AllMatches<\/code> parametresi ile t\u00fcm e\u015fle\u015fmeleri bir nesne dizisi olarak alabilirsiniz.<br \/>\n* <code class=\"language-\">Matches<\/code> \u00f6zelli\u011fi ile e\u015fle\u015fen alt dizeleri alabilirsiniz.<br \/>\n* <code class=\"language-\">-Context<\/code> parametresi ile e\u015fle\u015fmenin etraf\u0131ndaki sat\u0131rlar\u0131 da alabilirsiniz.<br \/>\n* PowerShell&#8217;in g\u00fc\u00e7l\u00fc d\u00fczenli ifade deste\u011fi ile karma\u015f\u0131k arama i\u015flemleri ger\u00e7ekle\u015ftirebilirsiniz.<\/p>\n<p><strong>8.  Sonu\u00e7<\/strong><\/p>\n<p>Bu makalede, PowerShell&#8217;in <code class=\"language-\">Select-String<\/code> cmdlet&#8217;\u0131n\u0131 kullanarak sadece ilk e\u015fle\u015fmeyi nas\u0131l d\u00f6nd\u00fcrece\u011finizi, performans\u0131 nas\u0131l optimize edece\u011finizi ve kar\u015f\u0131la\u015fabilece\u011finiz zor durumlar\u0131 nas\u0131l ele alaca\u011f\u0131n\u0131z\u0131 \u00f6\u011frendiniz.  Verilen \u00f6rnekler ve ipu\u00e7lar\u0131 ile, metin i\u015fleme g\u00f6revlerinizi daha verimli ve etkili bir \u015fekilde ger\u00e7ekle\u015ftirebilirsiniz.  Unutmay\u0131n ki, b\u00fcy\u00fck dosyalarda performans kritiktir ve do\u011fru teknikleri kullanmak \u00f6nemlidir.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular:<\/strong><\/p>\n<p>1. <strong><code class=\"language-\">Select-String<\/code>&#8216;in <code class=\"language-\">-List<\/code> parametresi ne i\u015fe yarar?<\/strong>  <code class=\"language-\">-List<\/code> parametresi, e\u015fle\u015fmeleri bir <code class=\"language-\">MatchInfo<\/code> nesnesi koleksiyonu olarak d\u00f6nd\u00fcr\u00fcr.  Bu, e\u015fle\u015fen sat\u0131r\u0131 ve di\u011fer bilgileri ayr\u0131 ayr\u0131 eri\u015fmenizi sa\u011flar.<\/p>\n<p>2. <strong>\u00c7ok b\u00fcy\u00fck dosyalarda performans\u0131 nas\u0131l daha da iyile\u015ftirebilirim?<\/strong>  Dosyay\u0131 par\u00e7alara b\u00f6l\u00fcp her par\u00e7ay\u0131 ayr\u0131 ayr\u0131 i\u015fleyebilir veya daha geli\u015fmi\u015f metin i\u015fleme k\u00fct\u00fcphaneleri kullanabilirsiniz.<\/p>\n<p>3. <strong>D\u00fczenli ifadeler hakk\u0131nda daha fazla bilgi nereden alabilirim?<\/strong>  Microsoft&#8217;un d\u00fczenli ifade belgelerine ve \u00e7e\u015fitli \u00e7evrimi\u00e7i kaynaklara bakabilirsiniz.<\/p>\n<p>4. <strong><code class=\"language-\">try-catch<\/code> blo\u011fu neden \u00f6nemlidir?<\/strong>  <code class=\"language-\">try-catch<\/code> blo\u011fu, olas\u0131 hatalar\u0131 yakalay\u0131p uygulaman\u0131z\u0131n \u00e7\u00f6kmesini \u00f6nler.<\/p>\n<p>5. <strong><code class=\"language-\">Get-Content<\/code> cmdlet&#8217;\u0131 nas\u0131l kullan\u0131l\u0131r?<\/strong>  <code class=\"language-\">Get-Content<\/code> cmdlet&#8217;\u0131, bir dosyan\u0131n i\u00e7eri\u011fini sat\u0131r sat\u0131r veya t\u00fcm i\u00e7eri\u011fi okumak i\u00e7in kullan\u0131l\u0131r.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# PowerShell: Select-String ile \u0130lk E\u015fle\u015fmeyi Bulma Log dosyalar\u0131nda hata mesaj\u0131 m\u0131 ar\u0131yorsunuz? Binlerce sat\u0131rl\u0131k bir metin dosyas\u0131nda&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-26455","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: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme<\/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-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-25T09:45:25+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=\"6 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme\",\"datePublished\":\"2025-07-25T09:45:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\"},\"wordCount\":1129,\"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-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\",\"name\":\"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-07-25T09:45:25+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme\"}]},{\"@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: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme","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-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/","og_locale":"tr_TR","og_type":"article","og_title":"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-07-25T09:45:25+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"6 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme","datePublished":"2025-07-25T09:45:25+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/"},"wordCount":1129,"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-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/","url":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/","name":"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-07-25T09:45:25+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-select-string-ile-sadece-ilk-eslesmeyi-donusturme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PowerShell: Select-String ile Sadece \u0130lk E\u015fle\u015fmeyi D\u00f6n\u00fc\u015ft\u00fcrme"}]},{"@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\/26455","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=26455"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26455\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=26455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=26455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=26455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}