So my current shell scripting is:
for j in *.jpg
do
tesseract $j $j
done
where tesseract converts jpg files into text files. With this script, if there was a file HAHA.jpg, then the output file name becomes, HAHA.jpg.txt but I want it to be just HAHA.txt
Is there a way to make the output file name as HAHA.txt instead of HAHA.jpg.txt?