simple code
Friday, February 13, 2009
some trick with ls command
i use ls command very frequently, and here are some tricks
1. list only directory:
ls -l | grep “^d”
find . -type d -maxdepth 1 -mindepth 1
ls -d */
2. list only file
find . -type f -maxdepth 1
find . -type f -maxdepth 1 \( ! -iname ".*" \)
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)