It is required to make a simple script that displays the name of the file and then its contents in the specified directory. I tried to modify the example from the manual:
cd $1 for f in *.txt do cat ${f} done However, an error occurs when starting
xred@xred-W65-67SJ:~$ ./7.sh /home/ cat: '*.txt': No such file or directory What am I doing wrong? The home directory is guaranteed to have several files with this extension.