![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2005
Posts: 24
OS: Windows XP
|
#include in bash shell script
Hi,
I was wondering whether there is an equivalent to the #include (used in c programs to import file content) in bash? If an equivalent doesn't exist then anyone know a workaround? I have various files with defined paths and commands which I want to hack onto my .bashrc file at different times. I know I can just copy the text over to the .bashrc every time I need it, but it seems like a really dumb way to go about it. Thanks in advance. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) | |
|
Registered User
Join Date: Jul 2007
Posts: 1
OS: GNU/Linux from Source Code
|
Re: #include in bash shell script
Quote:
Code:
#!/bin/bash # A script that includes another script source My_Other_Script.sh # include is in $PATH source /path/to/the/include/My_Other_Other_Script.sh # explicit PATH |
|
|
|
|
![]() |
| Thread Tools | |
|
|