Bash: cadenas, comandos y escape (¡oh, Dios mío!)

Estoy perdiendo mucho tiempo en este momento tratando de descubrir algo tan simple ...

pseudocódigo (mezcla de varias sintaxis, lo siento):

cmd1 = "find /my/starting/path -type f | grep -v -f /my/exclude/files"
cmd2 = " nl -ba -s'  ' "
cmd3 = " | xargs mv -t /move/here/dir " 

echo run_command_and_return_output($cmd1$cmd2)

$cmd1$cmd3  # just this now... 

# i don't actually want a function... but the name explains what i want to do
function run_command_and_return_output(){ /* magic */ }

esto funciona....

FIND=$(find $LOG_DIR -type f | grep -v -f $EXCLUDE | nl -ba -s'   ')

printf "%s\n" "$FIND"

esto no lo hace...

NL="nl -ba -s'  '"
FIND=$(find $LOG_DIR -type f -mtime +$ARCH_AGE | grep -v -f $EXCLUDE | $NL)

printf "%s\n" "$FIND"

y tampoco esto ...

NL='nl -ba -s'\''   '\'' '

Sin embargo, esto definitivamente funciona:

find /my/starting/path -type f | grep -v -f /my/exclude/files |  nl -ba -s'  ' 

o

FIND=$(find $LOG_DIR -type f -mtime +$ARCH_AGE | grep -v -f $EXCLUDE | nl -ba -s'  ' )

Respuestas a la pregunta(1)

Su respuesta a la pregunta