Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. find . -type d -maxdepth 1
  2.  
  3. .
  4. ./foo
  5. ./bar
  6.  
  7. find . -type d -maxdepth 1 -print0 | xargs -0 stat -f '%N'
  8.  
  9. find . -maxdepth 1 -type d -printf '%fn'
  10.  
  11. find . -maxdepth 1 -type d | cut -c 3-
  12.  
  13. find . -maxdepth 1 -type d | sed -e 's/^.///'
  14.  
  15. find * -type d
  16.  
  17. find . -type d -maxdepth 1 -mindepth 1
  18.  
  19. echo */
  20.  
  21. find ./ -type d -maxdepth 1 -exec basename {} ;
  22.  
  23. find . -maxdepth 1 -mindepth 1 -type d -printf '%fn'
  24.  
  25. dir1
  26. dir2
  27. dir3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement