6.sh script
#!/bin/bash #1 - output file name #2 - the target folder #3 - extension find $2 -name '*.$3' > $1 Called find from terminal works
find /media/ubuntu -name '*.txt' > txtFile.txt In the script, find does not work, writes 0 bytes to the file:
6.sh txtFiles.txt /media/ubuntu txt
'*.$3'with\*.$3- aleksandr barakin