i need to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether the argument is a directory or not
i tried using this code
if [ -f $filename ]
tr "[a-z]" "[A-Z]" <$filename
but i dint get output