I've got some command outputs saved into variables in bash script, for instance 3, in each loop iteration. I'd like to save these variables inside a plain text database containing 3 fields before the iteration finishes
The idea is the following:
If.. Command output1 > $v1 Command output2 > $v2 Command output3 > $v3 echo $v1 $v2 $v 3 >> database.txt fi
Would the echo variable calling be valid for storing variables value into database.txt? What if we would like them to be delimited by tab in the plain text?