Search Results

Search: Posts Made By: gskris88
6,432
Posted By gskris88
Thank you, your suggestion solved the problem :)
Thank you, your suggestion solved the problem :)
6,432
Posted By gskris88
Passing variables from one script to another
Hi,

this is the example i'm trying to do.

script1.sh

ABC="test.txt"
./script2.sh "$ABC"

script2.sh
INPUT="$HOMEDIR/$ABC"
echo $INPUT

when i run the 1st script it gives me
../home/...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy