I am struggling with the correct syntax to create a series of directories. Let say 50. These directories will have an index file in them all the same. I have this Bash code but cant seem to work out the code syntax to get it to work. can someone talk me through it please. Thanks
for f in foo/bar{00..50}; do
mkdir -p $f && printf "text\n goes\n here" > $f/index