I am still snooping around bash as a newbie and I wanted to ask some question Is it possible to append additional text to value in bash? Example below:
#!/bin/bash
value1="qwerty"
value2="asdfgh"
echo $value1 >> $value3
echo $value2 >> $value3
echo $value3
So my question is - can I create value that contain other values? Why am I trying to do this? Because I want to do some logical functions for each value and if it meets the criteria it gets appended to my final value. By the end I would echo value3 and it would contain all results that met criteria.