New student here taking a intro to unix/linux course and I am stuck on this problem
Use filename metacharacters and a single ls -lL command (with lower and upper case L as the command options) to list all file names that contain a dot '.' followed by a lower case letter, then end with the letter 't' or 'r' as the second from last character. These files should be from your current directory as well as any directory under the current directory that contains the letters "data". For example: data1/a.pqrs would be a match, but dabta.Dtu and datafiles/.soft do not match.
Hint: use two command arguments for ls, one for the current directory and one for directories the contain 'data'. DO NOT USE two ls commands.
any help would be greatly appreciated