{"id":28814,"date":"2025-09-03T15:47:44","date_gmt":"2025-09-03T12:47:44","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/"},"modified":"2025-09-03T15:47:44","modified_gmt":"2025-09-03T12:47:44","slug":"how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/","title":{"rendered":"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)"},"content":{"rendered":"<p># sed ile Bir Dizideki Son Karakteri Nas\u0131l De\u011fi\u015ftiririz?<\/p>\n<p>Bir metin dosyas\u0131nda veya de\u011fi\u015fkendeki son nokta, virg\u00fcl ya da ba\u015fka bir karakteri de\u011fi\u015ftirmek istiyorsunuz, ancak <code class=\"language-\">sed<\/code> komutunun t\u00fcm olu\u015fumlar\u0131 de\u011fi\u015ftirmesinden endi\u015feleniyorsunuz.  Bu makale, <code class=\"language-\">sed<\/code> komutunu kullanarak bir dizideki bir karakterin sadece son olu\u015fumunu nas\u0131l de\u011fi\u015ftirece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayacakt\u0131r.  <code class=\"language-\">sed<\/code>&#8216;in g\u00fc\u00e7l\u00fc d\u00fczenleme yeteneklerini kullanarak, karma\u015f\u0131k metin manip\u00fclasyonlar\u0131n\u0131 kolayca ger\u00e7ekle\u015ftirebilirsiniz.  Bu rehber, yeni ba\u015flayanlardan uzmanlara kadar herkese hitap edecek \u015fekilde tasarlanm\u0131\u015ft\u0131r.<\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131:<\/strong><\/p>\n<p>* <strong>Yeni Ba\u015flayan:<\/strong>  Temel <code class=\"language-\">sed<\/code> komutlar\u0131 ve basit bir \u00f6rnek ile son karakter de\u011fi\u015ftirme.<br \/>\n* <strong>Orta Seviye:<\/strong> Ger\u00e7ek d\u00fcnya senaryolar\u0131, daha karma\u015f\u0131k \u00f6rnekler ve optimizasyon ipu\u00e7lar\u0131.<br \/>\n* <strong>\u0130leri Seviye:<\/strong> Performans analizi, \u00f6zel durumlar (edge cases) ve geli\u015fmi\u015f <code class=\"language-\">sed<\/code> teknikleri.<\/p>\n<p><strong>1. Temel sed Kavramlar\u0131: \u0130lk Ad\u0131mlar<\/strong><\/p>\n<p><code class=\"language-\">sed<\/code> (stream editor), metin dosyalar\u0131nda d\u00fczenleme yapmak i\u00e7in kullan\u0131lan g\u00fc\u00e7l\u00fc bir komut sat\u0131r\u0131 arac\u0131d\u0131r.  Temel olarak, bir metin ak\u0131\u015f\u0131n\u0131 sat\u0131r sat\u0131r i\u015fleyerek, belirli kal\u0131plara (pattern) g\u00f6re de\u011fi\u015fiklikler yapar.  <code class=\"language-\">sed<\/code> komutlar\u0131n\u0131n genel yap\u0131s\u0131 \u015fu \u015fekildedir:<\/p>\n<p><code class=\"language-\">sed 'komut' dosya_ad\u0131<\/code><\/p>\n<p>\u00d6rne\u011fin, <code class=\"language-\">sed 's\/eski\/yeni\/' dosya.txt<\/code> komutu, <code class=\"language-\">dosya.txt<\/code> dosyas\u0131ndaki t\u00fcm &#8220;eski&#8221; metinlerini &#8220;yeni&#8221; ile de\u011fi\u015ftirir.  <code class=\"language-\">s<\/code> harfi &#8220;substitution&#8221; (de\u011fi\u015ftirme) anlam\u0131na gelir.<\/p>\n<p><strong>2. Sadece Son Karakteri De\u011fi\u015ftirme: Yeni Ba\u015flayanlar \u0130\u00e7in<\/strong><\/p>\n<p>Hedefimiz, bir dizideki son nokta (.) karakterini ba\u015fka bir karakterle de\u011fi\u015ftirmek olsun.  \u00d6rne\u011fin, &#8220;Merhaba. D\u00fcnya.&#8221; c\u00fcmlesindeki son noktay\u0131 \u00fcnlem i\u015faretiyle (!) de\u011fi\u015ftirmek istiyoruz.  Bunun i\u00e7in, <code class=\"language-\">sed<\/code>&#8216;in <code class=\"language-\">$<\/code> \u00f6zel karakterini kullanaca\u011f\u0131z.  <code class=\"language-\">$<\/code> karakteri, bir sat\u0131r\u0131n sonunu temsil eder.<\/p>\n<p>A\u015fa\u011f\u0131daki komutu kullanabiliriz:<\/p>\n<pre class=\"language-bash\"><code>echo &quot;Merhaba. D\u00fcnya.&quot; | sed 's\/\\.$\/\\!\/g'<\/code><\/pre>\n<p>Bu komut,  <code class=\"language-\">echo<\/code> komutu ile olu\u015fturulan &#8220;Merhaba. D\u00fcnya.&#8221; dizisini <code class=\"language-\">sed<\/code>&#8216;e g\u00f6nderir.  <code class=\"language-\">s\/\\.$\/\\!\/g<\/code> k\u0131sm\u0131 ise de\u011fi\u015ftirme i\u015flemini tan\u0131mlar:<\/p>\n<p>* <code class=\"language-\">s\/<\/code>: De\u011fi\u015ftirme i\u015flemini ba\u015flat\u0131r.<br \/>\n* <code class=\"language-\">\\.<\/code>: Son noktay\u0131 arar (nokta \u00f6zel bir karakter oldu\u011fu i\u00e7in ters e\u011fik \u00e7izgi ile ka\u00e7\u0131r\u0131lmal\u0131d\u0131r).<br \/>\n* <code class=\"language-\">$<\/code>: Sat\u0131r\u0131n sonunu belirtir.<br \/>\n* <code class=\"language-\">\/<\/code>: Ay\u0131r\u0131c\u0131 karakterdir.<br \/>\n* <code class=\"language-\">\\!<\/code>: Son noktay\u0131 \u00fcnlem i\u015faretiyle de\u011fi\u015ftirir.<br \/>\n* <code class=\"language-\">g<\/code>: T\u00fcm e\u015fle\u015fmeleri de\u011fi\u015ftirir (burada sadece bir e\u015fle\u015fme oldu\u011fu i\u00e7in gerekli olmasa da, al\u0131\u015fkanl\u0131k haline getirmek faydal\u0131d\u0131r).<\/p>\n<p>\u00c7\u0131kt\u0131: &#8220;Merhaba. D\u00fcnya!&#8221; olacakt\u0131r.<\/p>\n<p><strong>3. Ger\u00e7ek D\u00fcnya Senaryolar\u0131: Orta Seviye Uygulama<\/strong><\/p>\n<p>\u015eimdi, daha ger\u00e7ek\u00e7i bir senaryo ele alal\u0131m.  Bir log dosyas\u0131nda, her sat\u0131r\u0131n sonunda bir nokta yerine virg\u00fcl koymak istedi\u011fimizi varsayal\u0131m.  Log dosyam\u0131z <code class=\"language-\">log.txt<\/code> olsun ve i\u00e7eri\u011fi \u015fu \u015fekilde olsun:<\/p>\n<pre class=\"language-\"><code>\u0130\u015flem 1 tamamland\u0131.\n\u0130\u015flem 2 ba\u015flat\u0131ld\u0131.\n\u0130\u015flem 3 hata verdi.<\/code><\/pre>\n<p>A\u015fa\u011f\u0131daki komut, her sat\u0131r\u0131n sonundaki noktay\u0131 virg\u00fcl ile de\u011fi\u015ftirir:<\/p>\n<pre class=\"language-bash\"><code>sed 's\/\\.$\/,\/g' log.txt &gt; log_yeni.txt<\/code><\/pre>\n<p>Bu komut, orijinal <code class=\"language-\">log.txt<\/code> dosyas\u0131n\u0131 de\u011fi\u015ftirmez,  de\u011fi\u015ftirilmi\u015f i\u00e7eri\u011fi <code class=\"language-\">log_yeni.txt<\/code> adl\u0131 yeni bir dosyaya yazar.  Bu, olas\u0131 hatalardan ka\u00e7\u0131nmak i\u00e7in \u00f6nemli bir \u00f6nlemdir.<\/p>\n<p><strong>4.  Karma\u015f\u0131k Kal\u0131plar ve Optimizasyon \u0130pu\u00e7lar\u0131: Orta Seviye<\/strong><\/p>\n<p>E\u011fer son karakter belirli bir karakter k\u00fcmesinden biri ise nas\u0131l de\u011fi\u015ftiririz?  \u00d6rne\u011fin, son karakter nokta (.), soru i\u015fareti (?) veya \u00fcnlem (!) ise virg\u00fcl ile de\u011fi\u015ftirmek isteyebiliriz.  Bunun i\u00e7in karakter s\u0131n\u0131flar\u0131n\u0131 kullanabiliriz:<\/p>\n<pre class=\"language-bash\"><code>sed 's\/\\.[?!]$\/,\/g' log.txt &gt; log_yeni.txt<\/code><\/pre>\n<p>Bu komut, sat\u0131r sonundaki nokta, soru i\u015fareti veya \u00fcnlem i\u015faretini virg\u00fcl ile de\u011fi\u015ftirir.  <code class=\"language-\">[?!.]<\/code> karakter s\u0131n\u0131f\u0131, bu \u00fc\u00e7 karakterden herhangi birini e\u015fle\u015ftirir.<\/p>\n<p><strong>Optimizasyon \u0130pu\u00e7lar\u0131:<\/strong><\/p>\n<p>* B\u00fcy\u00fck dosyalar i\u00e7in <code class=\"language-\">sed<\/code>&#8216;in <code class=\"language-\">-i<\/code> (inplace) se\u00e7ene\u011fini kullanmaktan ka\u00e7\u0131n\u0131n.  Bu, orijinal dosyay\u0131 do\u011frudan de\u011fi\u015ftirir ve yedekleme yapmad\u0131\u011f\u0131n\u0131z takdirde veri kayb\u0131na yol a\u00e7abilir.  Her zaman yedek dosya olu\u015fturun.<br \/>\n*  Karma\u015f\u0131k d\u00fczenlemeler i\u00e7in <code class=\"language-\">sed<\/code> yerine daha g\u00fc\u00e7l\u00fc ara\u00e7lar (\u00f6rne\u011fin <code class=\"language-\">awk<\/code> veya <code class=\"language-\">perl<\/code>) kullanmay\u0131 d\u00fc\u015f\u00fcn\u00fcn.  <code class=\"language-\">sed<\/code> basit d\u00fczenlemeler i\u00e7in en uygunudur.<\/p>\n<p><strong>5.  Performans Analizi ve \u00d6zel Durumlar (Edge Cases): \u0130leri Seviye<\/strong><\/p>\n<p>\u00c7ok b\u00fcy\u00fck dosyalarla \u00e7al\u0131\u015f\u0131rken, <code class=\"language-\">sed<\/code>&#8216;in performans\u0131 \u00f6nemli bir fakt\u00f6r haline gelir.  Performans\u0131 art\u0131rmak i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemleri deneyebilirsiniz:<\/p>\n<p>*  Gerekliyse, <code class=\"language-\">sed<\/code> komutunu optimize edin. Gereksiz i\u015flemlerden ka\u00e7\u0131n\u0131n.<br \/>\n*  E\u011fer m\u00fcmk\u00fcnse, <code class=\"language-\">sed<\/code> yerine daha h\u0131zl\u0131 ara\u00e7lar kullan\u0131n.  <code class=\"language-\">awk<\/code> ve <code class=\"language-\">perl<\/code>, b\u00fcy\u00fck dosyalarda daha iyi performans g\u00f6sterebilir.<br \/>\n*  \u00c7ok b\u00fcy\u00fck dosyalar i\u00e7in, dosyay\u0131 daha k\u00fc\u00e7\u00fck par\u00e7alara b\u00f6l\u00fcp her par\u00e7ay\u0131 ayr\u0131 ayr\u0131 i\u015flemeyi deneyebilirsiniz.  Daha sonra sonu\u00e7lar\u0131 birle\u015ftirebilirsiniz.<\/p>\n<p><strong>\u00d6zel Durumlar (Edge Cases):<\/strong><\/p>\n<p>* Bo\u015f sat\u0131rlar: Bo\u015f sat\u0131rlarda son karakter yoktur, bu nedenle bu durum i\u00e7in \u00f6zel bir i\u015flem eklemeniz gerekebilir.<br \/>\n* \u00c7oklu karakter de\u011fi\u015ftirme: Birden fazla son karakteri de\u011fi\u015ftirmeniz gerekiyorsa, birden fazla <code class=\"language-\">sed<\/code> komutu kullanman\u0131z veya daha g\u00fc\u00e7l\u00fc bir ara\u00e7 kullanman\u0131z gerekebilir.<\/p>\n<p><strong>6.  sed ile Metin \u0130\u015flemede Pratik \u00c7\u00f6z\u00fcmler<\/strong><\/p>\n<p><code class=\"language-\">sed<\/code>&#8216;i kullanarak metin dosyalar\u0131nda bir\u00e7ok pratik problemi \u00e7\u00f6zebilirsiniz.  \u00d6rne\u011fin:<\/p>\n<p>*  Log dosyalar\u0131n\u0131 analiz etmek ve belirli hatalar\u0131 bulmak.<br \/>\n*  HTML veya XML dosyalar\u0131n\u0131 d\u00fczenlemek.<br \/>\n*  Veri temizleme i\u015flemleri ger\u00e7ekle\u015ftirmek.<br \/>\n*  Programlama dillerinde kullan\u0131lan dosya formatlar\u0131n\u0131 d\u00fczenlemek.<\/p>\n<p>Bu gibi durumlarda, <code class=\"language-\">sed<\/code>&#8216;in g\u00fc\u00e7l\u00fc d\u00fczenleme yetenekleri size zaman kazand\u0131rabilir ve i\u015finizi kolayla\u015ft\u0131rabilir.  Daha detayl\u0131 bilgi i\u00e7in [Fatih Soysal&#8217;\u0131n bloguna](https:\/\/fatihsoysal.com) g\u00f6z atabilirsiniz.<\/p>\n<p><strong>7.  Sonu\u00e7 ve S\u0131k\u00e7a Sorulan Sorular (SSS)<\/strong><\/p>\n<p>Bu makale, <code class=\"language-\">sed<\/code> komutunu kullanarak bir dizideki son karakteri nas\u0131l de\u011fi\u015ftirece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klad\u0131.  <code class=\"language-\">sed<\/code>, metin i\u015flemede g\u00fc\u00e7l\u00fc ve esnek bir ara\u00e7t\u0131r, ancak karma\u015f\u0131k senaryolar i\u00e7in daha geli\u015fmi\u015f ara\u00e7lar gerekebilir.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular (SSS):<\/strong><\/p>\n<p>1. <strong><code class=\"language-\">sed<\/code>&#8216;i nas\u0131l y\u00fcklerim?<\/strong>  <code class=\"language-\">sed<\/code>, \u00e7o\u011fu Linux ve macOS da\u011f\u0131t\u0131m\u0131nda \u00f6nceden y\u00fcklenir.  Windows&#8217;ta, Cygwin veya Git Bash gibi ara\u00e7lar\u0131 kullanarak y\u00fckleyebilirsiniz.<br \/>\n2. <strong><code class=\"language-\">sed<\/code>&#8216;in <code class=\"language-\">-i<\/code> se\u00e7ene\u011fi nedir?<\/strong>  <code class=\"language-\">-i<\/code> se\u00e7ene\u011fi, <code class=\"language-\">sed<\/code> komutunun de\u011fi\u015fiklikleri do\u011frudan dosyada yapmas\u0131n\u0131 sa\u011flar.  Bu se\u00e7ene\u011fi kullan\u0131rken dikkatli olun, \u00e7\u00fcnk\u00fc orijinal dosya de\u011fi\u015ftirilecektir.<br \/>\n3. <strong><code class=\"language-\">sed<\/code>&#8216;de ka\u00e7\u0131\u015f karakterleri (escape characters) ne i\u015fe yarar?<\/strong>  \u00d6zel karakterleri (\u00f6rne\u011fin nokta, y\u0131ld\u0131z, dolar i\u015fareti) ararken, bunlar\u0131 ka\u00e7\u0131rman\u0131z gerekir.  Bunun i\u00e7in ters e\u011fik \u00e7izgi (<code class=\"language-\">\\<\/code>) kullan\u0131l\u0131r.<br \/>\n4. <strong><code class=\"language-\">sed<\/code>&#8216;in daha geli\u015fmi\u015f \u00f6zellikleri nelerdir?<\/strong>  <code class=\"language-\">sed<\/code>, adresleme, dallanma, fonksiyonlar ve daha bir\u00e7ok geli\u015fmi\u015f \u00f6zelli\u011fe sahiptir.  Bu \u00f6zellikler, daha karma\u015f\u0131k metin manip\u00fclasyonlar\u0131 i\u00e7in kullan\u0131labilir.<br \/>\n5. <strong><code class=\"language-\">sed<\/code> yerine hangi ara\u00e7lar\u0131 kullanabilirim?<\/strong>  <code class=\"language-\">awk<\/code>, <code class=\"language-\">perl<\/code> ve <code class=\"language-\">python<\/code> gibi ara\u00e7lar, <code class=\"language-\">sed<\/code>&#8216;den daha g\u00fc\u00e7l\u00fc ve esnektir, ancak daha karma\u015f\u0131k bir \u00f6\u011frenme e\u011frisi gerektirir.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# sed ile Bir Dizideki Son Karakteri Nas\u0131l De\u011fi\u015ftiririz? Bir metin dosyas\u0131nda veya de\u011fi\u015fkendeki son nokta, virg\u00fcl ya&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":[1374],"tags":[],"class_list":{"0":"post-28814","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-sed","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>How to Use sed to Replace Last Occurrence of Character in String (\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\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-03T12:47:44+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\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)\",\"datePublished\":\"2025-09-03T12:47:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\"},\"wordCount\":1094,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Sed\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\",\"name\":\"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-09-03T12:47:44+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use sed to Replace Last Occurrence of Character in String (\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":"How to Use sed to Replace Last Occurrence of Character in String (\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\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/","og_locale":"tr_TR","og_type":"article","og_title":"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-09-03T12:47:44+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\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)","datePublished":"2025-09-03T12:47:44+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/"},"wordCount":1094,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Sed"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/","url":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/","name":"How to Use sed to Replace Last Occurrence of Character in String (\u00c7eviri)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-09-03T12:47:44+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-sed-to-replace-last-occurrence-of-character-in-string-ceviri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use sed to Replace Last Occurrence of Character in String (\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\/28814","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=28814"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/28814\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=28814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=28814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=28814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}