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 ".*" \)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment