I have a variable that contains a find command
LST_FILE=$(find . -type f \( -name -o '*xml*' -o -name -o '*log*' \) -mmin 180)
Is it possible to append the command ? I mean like this
LST_FILE+=$(-delete)
or probably
DEL=$(-delete)
LST_FILE+=${DEL}
I need to know because I have several find commands that need to perform and it has different options for each commands, so I decided to put the command into variable and plan to append it with of each options regarding to the condition..
LST_FILE=$(...)
? That doesn't put the command into the variable, but its result. – DonHolgo Aug 14 '21 at 14:53