GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: I favor Slackware, CentOS and Debian
Posts: 25
Rep:
How do you list dot files only in bash?
Is it possible to list only files starting with (.) a dot
I have googled a lot and have found the answer!
I almost succedded
echo .*
.DCOPserver_tux_:0 .DCOPserver_tux__0 .ICEauthority .Xauthority .adobe .bash_history .bash_profile .bash_profile~ .bashrc .bashrc~ .config .firefox .fontconfig .fullcircle .java .kde .kderc .ktorrent.lock
But how do you do when you want them listed like this ?
.DCOPserver_tux_:0
.DCOPserver_tux__0
.ICEauthority
.Xauthority
.adobe
.bash_history
.bash_profile
.bashrc
.config
.firefox
.fontconfig
.fullcircle
.java
.kde
.kderc
.ktorrent.lock
Last edited by sysslack_linux; 11-09-2007 at 08:50 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.