I have been having a hard time figuring out how a specific line of bash script works. If anyone could break down how exactly this printf statement works it would be greatly appreciated.
printf "%${SPACES}s{FNAME}\n" " "
Where SPACES is a number and FNAME is the basename of a file or directory. More detail the better.