Hello again,
Am having an issue now with getting a simple grep command to work within a function..
The function is as below...
function findRecord() {
output=grep "001" recordDatabase
echo $output
}
At the moment the "001" is there to test the code, realistically it will be $1 and the findRecord function will be called from inside another function where it is passed the variable which sits in $1.
Hope that makes sense, let me know if i'm not being clear enough.
Thanks in advance.