list all the directories excluding “.”:
find . -maxdepth 1 -type d -not -name “.*”
find some string in all files matching a pattern in the subfolders (with grep -r you cannot specify the type of file)
find . -name ’*.py’ -exec grep -i pdb ‘{}’ ;
October 3, 2006
list all the directories excluding “.”:
find . -maxdepth 1 -type d -not -name “.*”
find . -name ’*.py’ -exec grep -i pdb ‘{}’ ;