Jump to content

Kabuk Programlama (Bash) Dosya Isimlerini Listele?


WolfmanTR_
 Share

Recommended Posts

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 by WolfmanTR_
Link to comment
Share on other sites

 

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 ?

Link to comment
Share on other sites

  • 2 hafta sonra ...
  • Administrator

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...