I have this script:
!#/bin/bash
FOLDER=$('ls /var/lib/das/bi -ltr | grep 4096 | tail -1 | awk '{print $9}' ')
OUTPUT=${'. /var/lib/das/bi/$FOLDER/bi-uploader.sh'}
echo $OUTPUT
I have tried using \'
to escape the quotes inside the awk, but it did not work. i get the error:
t $9}
awk: cmd. line:1: {print
awk: cmd. line:1: ^ unexpected newline or end of string
./script.sh: line 5: ${'. /var/lib/everseen/bi/$FOLDER/bi-uploader.sh'}: bad substitution
How can i escape those quotes for the command to work?