Create 998 directories one inside another with sequential names folder1, folder2, ... folder998 and create an additional folder named 'folder9991000' inside the last 'folder998' directory
mkdir -p folder$( seq -s "/folder" 999 )1000