I usualy combine some file PDF to one file PDF and put name with today date. This code:
#get today's date
export LANG=id_ID
export TZ=Asia/Jakarta
TODAY=$(date --date='0 days' '+%Y%m%d')
#combine and name file
pdftk *.pdf cat output document"$TODAY".pdf
Now, I want change TODAY with CURRENT FOLDER NAME (ex. folder name: Full01). I get this code for current folder name:
echo "${PWD##*/}"
or:
printf '%s\n' "${PWD##*/}"
How do I use the code? Can anyone help?