Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include file in korn shell 1

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
Hi
i cannot remember how to include a file of reuasable code in my korn or bourne shell scripts.
Help?
-A
 
Hi

Code:
[gray]#!/bin/bash[/gray]

[red].[/red] /path/to/function-library.sh

[gray]# or[/gray]

[red]source[/red] /path/to/function-library.sh

[gray]# then you can use things included from the library[/gray]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top