for f in ~/common/.*; do    echo $fdoneThe entries listed are,/home/sk/common/.           #undesired/home/sk/common/..          #undesired/home/sk/common/.aliasrcAnd i am putting a ugly hack to skip processing . and .. to avoid this,if [[ $f  == '/home/sk/common/.' || $f  == '/home/sk/common/..' ]]; then  true else  --do the opsfiIs there a shell option that will hide the dotted folders? I am facing this problem with ls -a as well.
for loop in bash lists dot and double dot folders
bash;files;wildcards;dot files
Here is a method using bash's extglob:shopt -s extglobfor f in .!(|.); do  echo $fdoneWith extglob the pattern !(pattern-list) matches anything except for the given pattern. The pattern in the example says match everything that starts with . and is not followed by nothing or another single ..