Bash script function return value problem
- by Eedoh
Hi to all.
Can anyone help me return the correct value from a bash script function?
Here's my function that should return first (and only) line of the file passed as an argument:
LOG_FILE_CREATION_TIME()
{
return_value=`awk 'NR==1' $1`
return return_value
}
And here's my call of that function in the other script:
…