Search
 
SCRIPT & CODE EXAMPLE
 

CPP

call function from separate bash script

#second.sh
func1 {
   fun="$1"
   book="$2"
   printf "func=%s,book=%s
" "$fun" "$book"
}

func2 {
   fun2="$1"
   book2="$2"
   printf "func2=%s,book2=%s
" "$fun2" "$book2"
}

#first.sh
source ./second.sh
func1 love horror
func2 ball mystery
Comment

PREVIOUS NEXT
Code Example
Cpp :: Basic Input / Output in C++ 
Cpp :: prime number program c++ 
Cpp :: Ninja c++ 
Cpp :: c++ list of pairs 
Cpp :: log base e synthax c++ 
Cpp :: inline function in cpp 
Cpp :: how to find product of a given numbers in c++ 
Cpp :: tabeau pseudo dynamique sur c++ 
Cpp :: C++ program to print all possible substrings of a given string 
Cpp :: how to run cpp using gcc vscode 
Cpp :: time complexity of sorting algorithms 
Cpp :: delete c++ 
Cpp :: Maximum sum of non consecutive elements 
Cpp :: c++ define function pointer 
Cpp :: C++ function inside main 
Cpp :: Shell-Sort C++ 
Cpp :: files c++ 
Cpp :: c++ char 
Cpp :: cpp compare strings 
Cpp :: front priority queue cpp 
Cpp :: what is a .h file in c++ 
Cpp :: css window id 
Cpp :: curl upload folder and subfolders 
Cpp :: Minimizing the dot product codechef in c++ 
Cpp :: cpp split bits 
Cpp :: error when using base class members 
Cpp :: KL/wweiok#L['.[- 
Cpp :: check whether kth bit is 1 
Cpp :: .txt file into .cpp 
Cpp :: estimateaffine3d example c++ 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =