ls -a |grep "^\."
.
..
.audacity-data
.bash_history
.bash_logout
.bashrc
为了排除 . 和..
ls -af |grep "^\."|grep -v "^\.$"|grep -v "^\.\.$"
如何简化?
ls -a |grep "^\."
.
..
.audacity-data
.bash_history
.bash_logout
.bashrc
为了排除 . 和..
ls -af |grep "^\."|grep -v "^\.$"|grep -v "^\.\.$"
如何简化?
ls -1A | grep "^\."