I want to examine the all the key files present in my /proc
. But /proc
has innumerable directories corresponding to the running processes. I don't want these directories to be listed. All these directories' names contain only numbers. As I am poor in regular expressions, can anyone tell me whats the regex
that I need to send to ls
to make it NOT to search files/directories which have numbers in their name?
UPDATE: Thanks to all the replies! But I would love to have a ls
alone solution instead of ls+grep
solution. The ls
alone solutions offered till now doesn't seem to be working!
You don't need grep, just ls
:
ls -ad /proc/[^0-9]*
if you want to search the whole subdirectory structure use find:
find /proc/ -type f -regex "[^0-9]*" -print