{"id":28964,"date":"2025-09-05T21:10:29","date_gmt":"2025-09-05T18:10:29","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/"},"modified":"2025-09-05T21:10:29","modified_gmt":"2025-09-05T18:10:29","slug":"bash-boslugu-alt-cizgiyle-degistirme-orneklerle","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/","title":{"rendered":"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)"},"content":{"rendered":"<p># Bash&#8217;te Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme: Tam Bir K\u0131lavuz<\/p>\n<p>Dosya ve dizin isimlerinde, de\u011fi\u015fken isimlerinde veya di\u011fer bir\u00e7ok durumda bo\u015fluk karakterlerinin kullan\u0131m\u0131 sorunlara yol a\u00e7abilir. Bash betiklerinde bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek, bu t\u00fcr sorunlar\u0131 \u00f6nlemenin etkili bir yoludur. Bu makale, Bash&#8217;te bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmenin farkl\u0131 y\u00f6ntemlerini, performans optimizasyonlar\u0131n\u0131 ve hata y\u00f6netimini ad\u0131m ad\u0131m a\u00e7\u0131klayarak, yeni ba\u015flayanlardan uzmanlara kadar herkes i\u00e7in kapsaml\u0131 bir rehber sunmaktad\u0131r.  Bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmenin inceliklerini ve pratik uygulamalar\u0131n\u0131 ke\u015ffedin ve Bash betiklerinizin g\u00fcc\u00fcn\u00fc art\u0131r\u0131n.<\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131<\/strong><\/p>\n<p>Bu rehber, Bash&#8217;te bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirme konusunda kademeli bir \u00f6\u011frenme yol haritas\u0131 sunar:<\/p>\n<p>* <strong>Yeni Ba\u015flayan:<\/strong> <code class=\"language-\">tr<\/code> komutu ile basit de\u011fi\u015ftirme i\u015flemi ve ad\u0131m ad\u0131m a\u00e7\u0131klama.<br \/>\n* <strong>Orta:<\/strong> Ger\u00e7ek d\u00fcnya senaryolar\u0131, <code class=\"language-\">sed<\/code> komutu ile daha geli\u015fmi\u015f de\u011fi\u015ftirme ve optimizasyon ipu\u00e7lar\u0131.<br \/>\n* <strong>\u0130leri D\u00fczey:<\/strong> <code class=\"language-\">awk<\/code> komutu ile karma\u015f\u0131k durumlar\u0131n ele al\u0131nmas\u0131, performans analizi ve hata y\u00f6netimi.<\/p>\n<p><strong>1. Temel Kavramlar: Bash ve Karakter De\u011fi\u015ftirme<\/strong><\/p>\n<p>Bash, bir\u00e7ok Linux ve Unix tabanl\u0131 sistemin komut yorumlay\u0131c\u0131s\u0131d\u0131r.  Karakter de\u011fi\u015ftirme i\u015flemleri, metin dosyalar\u0131n\u0131 i\u015flemek, de\u011fi\u015fken de\u011ferlerini manip\u00fcle etmek ve betiklerin daha dinamik olmas\u0131n\u0131 sa\u011flamak i\u00e7in kullan\u0131l\u0131r. Bo\u015fluk karakterini alt \u00e7izgiyle de\u011fi\u015ftirmek, bu i\u015flemlerin en yayg\u0131n \u00f6rneklerinden biridir.  Bu i\u015flem, dosya adlar\u0131nda bo\u015fluk kullan\u0131lmas\u0131n\u0131n yol a\u00e7abilece\u011fi sorunlar\u0131 \u00f6nlemek veya verileri belirli bir formata d\u00f6n\u00fc\u015ft\u00fcrmek i\u00e7in gerekli olabilir.  \u00d6rne\u011fin, bir web sunucusundan indirdi\u011finiz dosya adlar\u0131nda bo\u015fluklar varsa, bunlar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmeniz, dosya sisteminizde sorunsuz bir \u015fekilde \u00e7al\u0131\u015fmas\u0131n\u0131 sa\u011flar.  Ba\u015fka bir \u00f6rnek olarak, bir veritaban\u0131na veri aktar\u0131rken, bo\u015fluk i\u00e7eren alan adlar\u0131n\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmeniz veritaban\u0131 i\u015flemlerinin sorunsuz bir \u015fekilde \u00e7al\u0131\u015fmas\u0131n\u0131 sa\u011flayabilir.<\/p>\n<p><strong>2.  Bash&#8217;te Bo\u015fluklar\u0131 Alt \u00c7izgiyle De\u011fi\u015ftirme: <code class=\"language-\">tr<\/code> Komutu ile Basit Y\u00f6ntem<\/strong><\/p>\n<p>En basit y\u00f6ntem, <code class=\"language-\">tr<\/code> komutunu kullanmakt\u0131r.  <code class=\"language-\">tr<\/code> komutu, karakterleri birbirleriyle de\u011fi\u015ftirmek i\u00e7in kullan\u0131l\u0131r.  Bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz:<\/p>\n<pre class=\"language-bash\"><code>echo &quot;Bu bir \u00f6rnek metin.&quot; | tr ' ' '_'<\/code><\/pre>\n<p>Bu komut, &#8220;Bu bir \u00f6rnek metin.&#8221; metnindeki t\u00fcm bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirir ve \u00e7\u0131kt\u0131da &#8220;Bu_bir_\u00f6rnek_metin.&#8221; verir.  <code class=\"language-\">echo<\/code> komutu metni olu\u015fturur, <code class=\"language-\">|<\/code> boru i\u015fareti ise \u00e7\u0131kt\u0131y\u0131 <code class=\"language-\">tr<\/code> komutuna y\u00f6nlendirir.  <code class=\"language-\">tr ' ' '_'<\/code> k\u0131sm\u0131 ise bo\u015fluk karakterini (<code class=\"language-\"> <\/code>) alt \u00e7izgiyle (<code class=\"language-\">_<\/code>) de\u011fi\u015ftirir.<\/p>\n<p><strong>Yeni Ba\u015flayanlar \u0130\u00e7in Ad\u0131m Ad\u0131m A\u00e7\u0131klama:<\/strong><\/p>\n<p>1. <strong><code class=\"language-\">echo \"Bu bir \u00f6rnek metin.\"<\/code><\/strong>: Bu k\u0131s\u0131m, i\u015flem yap\u0131lacak metni olu\u015fturur.<br \/>\n2. <strong><code class=\"language-\">|<\/code><\/strong>: Bu boru i\u015fareti, <code class=\"language-\">echo<\/code> komutunun \u00e7\u0131kt\u0131s\u0131n\u0131 <code class=\"language-\">tr<\/code> komutuna aktar\u0131r.<br \/>\n3. <strong><code class=\"language-\">tr ' ' '_'<\/code><\/strong>: Bu k\u0131s\u0131m, <code class=\"language-\">tr<\/code> komutunun \u00f6z\u00fcn\u00fc olu\u015fturur.  Tek t\u0131rnaklar i\u00e7indeki ilk bo\u015fluk, de\u011fi\u015ftirilecek karakteri, ikinci bo\u015fluk ise de\u011fi\u015ftirilecek karakterle de\u011fi\u015ftirilecek karakteri temsil eder.<\/p>\n<p><strong>Basit Kod \u00d6rne\u011fi:<\/strong><\/p>\n<p>Bir de\u011fi\u015fkendeki bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek i\u00e7in:<\/p>\n<pre class=\"language-bash\"><code>my_variable=&quot;Bu bir \u00f6rnek de\u011fi\u015fken.&quot;\nnew_variable=$(echo &quot;$my_variable&quot; | tr ' ' '_')\necho &quot;$new_variable&quot;<\/code><\/pre>\n<p><strong>3.  Ger\u00e7ek D\u00fcnya Senaryolar\u0131:  <code class=\"language-\">sed<\/code> Komutu ile Geli\u015fmi\u015f De\u011fi\u015ftirme<\/strong><\/p>\n<p><code class=\"language-\">sed<\/code> (stream editor), metin dosyalar\u0131n\u0131 d\u00fczenlemek i\u00e7in g\u00fc\u00e7l\u00fc bir komuttur.  <code class=\"language-\">sed<\/code> komutu ile daha karma\u015f\u0131k de\u011fi\u015ftirme i\u015flemleri yapabilir ve dosyalar \u00fczerinde do\u011frudan de\u011fi\u015fiklikler yapabilirsiniz.<\/p>\n<p><strong>\u00d6rnek:<\/strong>  Bir dosyadaki t\u00fcm bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek i\u00e7in:<\/p>\n<pre class=\"language-bash\"><code>sed 's\/ \/_\/g' input.txt &gt; output.txt<\/code><\/pre>\n<p>Bu komut, <code class=\"language-\">input.txt<\/code> dosyas\u0131ndaki t\u00fcm bo\u015fluklar\u0131 (<code class=\"language-\">s\/ \/_\/g<\/code>) alt \u00e7izgiyle de\u011fi\u015ftirir ve sonucu <code class=\"language-\">output.txt<\/code> dosyas\u0131na yazar. <code class=\"language-\">g<\/code> bayra\u011f\u0131, her sat\u0131rdaki t\u00fcm bo\u015fluklar\u0131n de\u011fi\u015ftirilmesini sa\u011flar.<\/p>\n<p><strong>Ger\u00e7ek Hayat \u00d6rne\u011fi:<\/strong> Bir web sunucusundan indirdi\u011finiz dosya adlar\u0131 bo\u015fluk i\u00e7eriyorsa ve bunlar\u0131 sisteminizde sorunsuz bir \u015fekilde kullanmak istiyorsan\u0131z <code class=\"language-\">sed<\/code> kullanabilirsiniz.  \u00d6rne\u011fin, <code class=\"language-\">dosya adi.txt<\/code> adl\u0131 bir dosyan\u0131z varsa ve bunu <code class=\"language-\">dosya_adi.txt<\/code> olarak de\u011fi\u015ftirmek istiyorsan\u0131z:<\/p>\n<pre class=\"language-bash\"><code>mv &quot;dosya adi.txt&quot; &quot;$(echo &quot;dosya adi.txt&quot; | sed 's\/ \/_\/g')&quot;<\/code><\/pre>\n<p><strong>Optimizasyon \u0130pu\u00e7lar\u0131:<\/strong> B\u00fcy\u00fck dosyalar i\u00e7in <code class=\"language-\">sed<\/code> komutunu <code class=\"language-\">-i<\/code> se\u00e7ene\u011fi ile kullanarak dosyay\u0131 do\u011frudan d\u00fczenleyebilirsiniz. Ancak bu i\u015flemi yapmadan \u00f6nce mutlaka yedekleme alman\u0131z \u00f6nemlidir.  <code class=\"language-\">-i<\/code> se\u00e7ene\u011fi dosyay\u0131 yerinde de\u011fi\u015ftirir.<\/p>\n<p><strong>4.  \u0130leri D\u00fczey Teknikler: <code class=\"language-\">awk<\/code> Komutu ve Karma\u015f\u0131k Durumlar<\/strong><\/p>\n<p><code class=\"language-\">awk<\/code>, g\u00fc\u00e7l\u00fc bir metin i\u015fleme arac\u0131d\u0131r ve daha karma\u015f\u0131k durumlar\u0131 ele almak i\u00e7in kullan\u0131labilir. \u00d6rne\u011fin, sadece belirli s\u00fctunlardaki bo\u015fluklar\u0131 de\u011fi\u015ftirmek veya bo\u015fluklardan sonra gelen noktalama i\u015faretlerini de de\u011fi\u015ftirmek i\u00e7in <code class=\"language-\">awk<\/code> kullanabilirsiniz.<\/p>\n<p><strong>\u00d6rnek:<\/strong>  Bir CSV dosyas\u0131ndaki ikinci s\u00fct\u00fcndaki bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek i\u00e7in:<\/p>\n<pre class=\"language-bash\"><code>awk -F, '{gsub(\/ \/,&quot;_&quot;,$2); print}' input.csv &gt; output.csv<\/code><\/pre>\n<p>Bu komut, <code class=\"language-\">input.csv<\/code> dosyas\u0131n\u0131 virg\u00fcl (<code class=\"language-\">-F,<\/code>) ile ay\u0131r\u0131r ve ikinci s\u00fctun (<code class=\"language-\">$2<\/code>) i\u00e7indeki t\u00fcm bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirir. <code class=\"language-\">gsub<\/code> fonksiyonu, t\u00fcm e\u015fle\u015fmeleri de\u011fi\u015ftirir.<\/p>\n<p><strong>Edge Case&#8217;ler:<\/strong>  Baz\u0131 durumlarda,  birden fazla ard\u0131\u015f\u0131k bo\u015fluk olabilir veya bo\u015fluklardan \u00f6nce veya sonra noktalama i\u015faretleri olabilir. Bu t\u00fcr durumlar\u0131 ele almak i\u00e7in d\u00fczenli ifadeler kullanman\u0131z gerekebilir.  \u00d6rne\u011fin, bir veya daha fazla ard\u0131\u015f\u0131k bo\u015flu\u011fu tek bir alt \u00e7izgiyle de\u011fi\u015ftirmek i\u00e7in:<\/p>\n<pre class=\"language-bash\"><code>sed 's\/ \\{1,\\}\/_\/g' input.txt &gt; output.txt<\/code><\/pre>\n<p>Bu komut, bir veya daha fazla ard\u0131\u015f\u0131k bo\u015flu\u011fu (<code class=\"language-\">\\{1,\\}<\/code>) tek bir alt \u00e7izgiyle de\u011fi\u015ftirir.<\/p>\n<p><strong>5. Performans Optimizasyonu<\/strong><\/p>\n<p>B\u00fcy\u00fck dosyalarla \u00e7al\u0131\u015f\u0131rken, performans \u00f6nemli bir fakt\u00f6rd\u00fcr.  <code class=\"language-\">sed<\/code> ve <code class=\"language-\">awk<\/code> komutlar\u0131 genellikle <code class=\"language-\">tr<\/code> komutundan daha yava\u015ft\u0131r, ancak daha fazla esneklik sunarlar.  Performans\u0131 iyile\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki ipu\u00e7lar\u0131n\u0131 kullanabilirsiniz:<\/p>\n<p>* <strong><code class=\"language-\">xargs<\/code> komutu:<\/strong>  \u00c7ok say\u0131da dosyay\u0131 i\u015flemeniz gerekiyorsa, <code class=\"language-\">xargs<\/code> komutu ile <code class=\"language-\">sed<\/code> veya <code class=\"language-\">awk<\/code> komutlar\u0131n\u0131 paralel olarak \u00e7al\u0131\u015ft\u0131rabilirsiniz.<br \/>\n* <strong>Yerinde de\u011fi\u015ftirme:<\/strong>  <code class=\"language-\">sed<\/code> komutunun <code class=\"language-\">-i<\/code> se\u00e7ene\u011fi ile dosyalar\u0131 do\u011frudan d\u00fczenleyebilirsiniz, ancak bu i\u015flemden \u00f6nce yedekleme alman\u0131z \u00f6nemlidir.<br \/>\n* <strong>Bellek kullan\u0131m\u0131:<\/strong>  B\u00fcy\u00fck dosyalarla \u00e7al\u0131\u015f\u0131rken, komutlar\u0131n bellek kullan\u0131m\u0131n\u0131 izleyin ve gerekti\u011finde daha az bellek kullanan alternatifler aray\u0131n.  <code class=\"language-\">tr<\/code> komutu genellikle daha az bellek kullan\u0131r.<\/p>\n<p><strong>6. Hata Y\u00f6netimi<\/strong><\/p>\n<p>Betiklerinizde hata y\u00f6netimi \u00f6nemlidir.  \u00d6rne\u011fin, dosyan\u0131n var olup olmad\u0131\u011f\u0131n\u0131 kontrol edebilir ve dosya bulunamad\u0131\u011f\u0131nda uygun bir hata mesaj\u0131 g\u00f6sterebilirsiniz.<\/p>\n<pre class=\"language-bash\"><code>if [ -f input.txt ]; then\n  sed 's\/ \/_\/g' input.txt &gt; output.txt\nelse\n  echo &quot;Hata: input.txt dosyas\u0131 bulunamad\u0131.&quot;\nfi<\/code><\/pre>\n<p>Bu kod blo\u011fu, <code class=\"language-\">input.txt<\/code> dosyas\u0131n\u0131n var olup olmad\u0131\u011f\u0131n\u0131 kontrol eder ve dosya yoksa bir hata mesaj\u0131 g\u00f6sterir.<\/p>\n<p><strong>7.  Bash Betiklerinde Uygulama \u00d6rnekleri<\/strong><\/p>\n<p><strong>\u00d6rnek 1:  Dosya Adlar\u0131n\u0131 De\u011fi\u015ftirme:<\/strong>  Bir dizindeki t\u00fcm dosya adlar\u0131ndaki bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek i\u00e7in:<\/p>\n<pre class=\"language-bash\"><code>for file in *; do\n  mv &quot;$file&quot; &quot;$(echo &quot;$file&quot; | sed 's\/ \/_\/g&quot;)&quot;\ndone<\/code><\/pre>\n<p><strong>\u00d6rnek 2:  De\u011fi\u015fken De\u011ferlerini \u0130\u015fleme:<\/strong>  Bir de\u011fi\u015fkendeki bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek ve sonucu ba\u015fka bir de\u011fi\u015fkende saklamak i\u00e7in:<\/p>\n<pre class=\"language-bash\"><code>my_variable=&quot;Bu bir \u00f6rnek de\u011fi\u015fkendir.&quot;\nnew_variable=$(echo &quot;$my_variable&quot; | tr ' ' '_')\necho &quot;$new_variable&quot;<\/code><\/pre>\n<p><strong>8. Sonu\u00e7<\/strong><\/p>\n<p>Bash&#8217;te bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirmek, bir\u00e7ok durumda gerekli olan g\u00fc\u00e7l\u00fc bir metin i\u015fleme tekni\u011fidir. <code class=\"language-\">tr<\/code>, <code class=\"language-\">sed<\/code> ve <code class=\"language-\">awk<\/code> gibi farkl\u0131 komutlar, farkl\u0131 karma\u015f\u0131kl\u0131k seviyelerindeki g\u00f6revler i\u00e7in kullan\u0131labilir.  Performans ve hata y\u00f6netimi, b\u00fcy\u00fck \u00f6l\u00e7ekli uygulamalar i\u00e7in \u00f6nemli hususlard\u0131r.  Bu k\u0131lavuz, Bash&#8217;te bo\u015fluklar\u0131 alt \u00e7izgiyle de\u011fi\u015ftirme konusunda sa\u011flam bir temel olu\u015fturman\u0131za yard\u0131mc\u0131 olmay\u0131 ama\u00e7lamaktad\u0131r.  Daha fazla bilgi ve ileri seviye Bash teknikleri i\u00e7in [fatihsoysal.com](https:\/\/fatihsoysal.com) adresini ziyaret edebilirsiniz.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular (SSS):<\/strong><\/p>\n<p>1. <strong><code class=\"language-\">tr<\/code>, <code class=\"language-\">sed<\/code> ve <code class=\"language-\">awk<\/code> komutlar\u0131 aras\u0131ndaki farklar nelerdir?<\/strong>  <code class=\"language-\">tr<\/code> basit karakter de\u011fi\u015ftirme i\u00e7in kullan\u0131l\u0131rken, <code class=\"language-\">sed<\/code> ve <code class=\"language-\">awk<\/code> daha g\u00fc\u00e7l\u00fc metin i\u015fleme yetenekleri sunar. <code class=\"language-\">sed<\/code> ak\u0131\u015f d\u00fczenleyici iken, <code class=\"language-\">awk<\/code> programlama dili \u00f6zelliklerine sahiptir.<\/p>\n<p>2. <strong>B\u00fcy\u00fck dosyalar i\u00e7in hangi komutu kullanmal\u0131y\u0131m?<\/strong>  B\u00fcy\u00fck dosyalar i\u00e7in genellikle <code class=\"language-\">sed<\/code> veya <code class=\"language-\">awk<\/code> daha yava\u015ft\u0131r.  Performans\u0131 optimize etmek i\u00e7in <code class=\"language-\">xargs<\/code> kullanmay\u0131 d\u00fc\u015f\u00fcnebilirsiniz.  Ancak, <code class=\"language-\">tr<\/code> komutu genellikle en h\u0131zl\u0131 se\u00e7enektir.<\/p>\n<p>3. <strong>Yerinde de\u011fi\u015ftirme ne demektir ve riskleri nelerdir?<\/strong>  Yerinde de\u011fi\u015ftirme, dosyay\u0131 do\u011frudan d\u00fczenlemek anlam\u0131na gelir.  Bu i\u015flemi yapmadan \u00f6nce mutlaka yedekleme almal\u0131s\u0131n\u0131z, \u00e7\u00fcnk\u00fc hatalar dosyalar\u0131n kayb\u0131na neden olabilir.<\/p>\n<p>4. <strong>D\u00fczenli ifadeler ne zaman gereklidir?<\/strong>  Karma\u015f\u0131k desen e\u015fle\u015ftirme ve de\u011fi\u015ftirme i\u015flemleri i\u00e7in d\u00fczenli ifadeler gereklidir.  \u00d6rne\u011fin, birden fazla ard\u0131\u015f\u0131k bo\u015flu\u011fu de\u011fi\u015ftirmek veya bo\u015fluklardan \u00f6nce\/sonra noktalama i\u015faretlerini de\u011fi\u015ftirmek i\u00e7in d\u00fczenli ifadeler kullanmal\u0131s\u0131n\u0131z.<\/p>\n<p>5. <strong>Hata y\u00f6netimi neden \u00f6nemlidir?<\/strong>  Hata y\u00f6netimi, betiklerinizin beklenmedik durumlarla nas\u0131l ba\u015fa \u00e7\u0131kaca\u011f\u0131n\u0131 belirler.  Hata y\u00f6netimi eksikli\u011fi, betiklerinizin \u00e7\u00f6kmesine veya yanl\u0131\u015f sonu\u00e7lar \u00fcretmesine neden olabilir.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# Bash&#8217;te Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme: Tam Bir K\u0131lavuz Dosya ve dizin isimlerinde, de\u011fi\u015fken isimlerinde veya di\u011fer bir\u00e7ok&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1328],"tags":[],"class_list":{"0":"post-28964","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-bash","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)<\/title>\n<meta name=\"description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-05T18:10:29+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=\"8 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)\",\"datePublished\":\"2025-09-05T18:10:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\"},\"wordCount\":1414,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Bash\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\",\"name\":\"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-09-05T18:10:29+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)","description":"Hi\u00e7bir etiketi bulunamad\u0131.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/","og_locale":"tr_TR","og_type":"article","og_title":"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-09-05T18:10:29+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"8 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)","datePublished":"2025-09-05T18:10:29+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/"},"wordCount":1414,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Bash"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/","url":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/","name":"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-09-05T18:10:29+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/bash-boslugu-alt-cizgiyle-degistirme-orneklerle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bash: Bo\u015flu\u011fu Alt \u00c7izgiyle De\u011fi\u015ftirme (\u00d6rneklerle)"}]},{"@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\/28964","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=28964"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/28964\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=28964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=28964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=28964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}