Assuming an arbitrary number of files with random names and the same file extension (e.g., file1.txt, file2.txt...fileN.txt). How could you rename them all reliably with a random string?
Such as, file1.txt, file2.txt...fileN.txt to asdfwefer.txt, jsdafjk.txt... or any combination of letters from latin alphabet].txt
for file in *.txt; do mv -- "$file" "${file%.txt}[random string].jpg" doneI don't know how to introduce the random string