Computing.Net > Forums > Unix > Bash Script Question

Bash Script Question

Reply to Message Icon

Original Message
Name: smiledk
Date: March 20, 2004 at 14:34:39 Pacific
Subject: Bash Script Question
OS: unix
CPU/Ram: pentium
Comment:

how can i write a shell script that achrives all of my bash shell scripts. it searches thru all the files and subfolders in my home directory, and tars all the ones that have executable permission, but doesn't tar my script itself.


Report Offensive Message For Removal

Response Number 1
Name: nails
Date: March 20, 2004 at 21:35:36 Pacific
Subject: Bash Script Question
Reply: (edit)

Hi:

I'll give you part of it; This gives you all the files with execute permission in the current directory:

find . -type f -perm -1 -print

And I'll give you another hint: Within an executing shell script, you can find the name of the script by looking at $0.

Regards,

Nails


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Bash Script Question

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software