bash: getting rid of '.' and '..' when looping over files that begin with '.' in a folder
- by TheOsp
I want to loop over the files that begin with '.' in directory x (x might be any path):
$ for file in x/.*
> do
> echo -n $file" "
> done
x/. x/.. x/.a x/.b
What is the best way to get rid of x/., and x/.. ?