WolfmanTR_ Posted November 17, 2015 Share Posted November 17, 2015 Kullanıcı tarafından parametre olarak verilen bir klasör içerisindeki dosyaların adlarını bir diziye aktarıp, dizi elemanlarını ekrana nasıl yazdırabilirim ? Quote Link to comment Share on other sites More sharing options...
Administrator sk8er_boi Posted November 17, 2015 Administrator Share Posted November 17, 2015 http://stackoverflow.com/questions/5408402/linux-shell-script-list-contents-of-a-directory-into-a-file Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted November 18, 2015 Author Share Posted November 18, 2015 (edited) http://stackoverflow.com/questions/5408402/linux-shell-script-list-contents-of-a-directory-into-a-file yazdığım script'i çalıştıramıyorum.Sağ tıklayıp Run In Konsole tıkladığımda çalışması gerekir ken aşağıdaki hatayı alıyorum. hata: http://img.prntscr.com/img?url=http://i.imgur.com/X5JaYAx.png #!/bash/bin echo "tnc" yukarıdakini bile yazsam aynı hatayı veriyor. Linux:OpenSuse Edited November 18, 2015 by WolfmanTR_ Quote Link to comment Share on other sites More sharing options...
Administrator sk8er_boi Posted November 18, 2015 Administrator Share Posted November 18, 2015 chmod u+x script1.sh yapıp dosyana çalıştırma izni vermelisin. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted November 18, 2015 Author Share Posted November 18, 2015 chmod u+x script1.sh yapıp dosyana çalıştırma izni vermelisin. Tamamdır çalıştı ama bana açıkcası balık lazım şuan :) yani türkçe kaynak olsa, kodların karşılığını anlayamıyorum Quote Link to comment Share on other sites More sharing options...
Administrator sk8er_boi Posted November 19, 2015 Administrator Share Posted November 19, 2015 scriptine bu yazıp #!/bin/bash ls -l $ bu şekilde çalıştırmalısın ./script "klasorun yolu" Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted November 19, 2015 Author Share Posted November 19, 2015 scriptine bu yazıp #!/bin/bash ls -l $ bu şekilde çalıştırmalısın ./script "klasorun yolu" script i şu şekilde çalıştırıyorum : sh j4.sh "/home/j4cob" ama hiçrbir tepki vermiyor. parametre("/home/j4cob") vermeden çalıştırınca please provide foldername i döndürüyor. Klasör yolunu mu yanlış giriyorum ? Quote Link to comment Share on other sites More sharing options...
Administrator sk8er_boi Posted December 1, 2015 Administrator Share Posted December 1, 2015 script i şu şekilde çalıştırıyorum : sh j4.sh "/home/j4cob" ama hiçrbir tepki vermiyor. parametre("/home/j4cob") vermeden çalıştırınca please provide foldername i döndürüyor. Klasör yolunu mu yanlış giriyorum ? $ yerine $1 yazar mısın? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.