#!/bin/bash
l="$(ls)"
i=0
str=""
for s in $l
do
if [ $i -lt 2 ]
then
str="$str$s "
else
str="$str$s"
fi
i=$(($i+1))
if [ $i -eq 3 ]
then
ttr=$(echo $str | sed 's/ /_/g')
mv "$str" $ttr
echo "\\includegraphics [width=\\textwidth] {./20240824/Matrix13/$ttr}\\\\"
echo ""
str=""
i=0
fi
done