漏れは、Windows 10, WSL, Ubuntu 18.04 だけど、

which pup
無し

apt-cache show pup
パッケージ pup が見つかりません

oldfile=`date -d "7 day ago" +'%Y%m%d'`

echo $oldfile | od -x --endian=big
3230 3230 3038 3036 0a00

echo $oldfile.txt | od -x --endian=big
3230 3230 3038 3036 2e74 7874 0a00

確かに、0a00 は、echo が付けているだけだった