Listing entries in a directory using grep
问题 I'm trying to list all entries in a directory whose names contain ONLY upper-case letters. Directories need "/" appended. #!/bin/bash cd ~/testfiles/ ls | grep -r *.* Since grep by default looks for upper-case letters only (right?), I'm just recursively searching through the directories under testfiles for all names who contain only upper-case letters. Unfortunately this doesn't work. As for appending directories, I'm not sure why I need to do this. Does anyone know where I can start with