Computing.Net > Forums > Unix > Bash Script Question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Bash Script Question

Reply to Message Icon

Name: smiledk
Date: March 20, 2004 at 14:34:39 Pacific
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.



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: March 20, 2004 at 21:35:36 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Bash Script Question

Converted BASH script acting strang www.computing.net/answers/unix/converted-bash-script-acting-strang/4385.html

Verify maildelivery in bash script www.computing.net/answers/unix/verify-maildelivery-in-bash-script/5565.html

howto add ctrl chars to bash script www.computing.net/answers/unix/howto-add-ctrl-chars-to-bash-script/4994.html