internet_ml/scripts/for_folder.sh

9 lines
121 B
Bash

#!/bin/bash
for d in */ ; do
[ -L "${d%/}" ] && continue
echo "$d"
cd "$d"
touch main.tex
cd ..
done