Advertisement
zopper

List groups in directory tree

Sep 29th, 2012
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. # Check directory tree (recursively) and print every group that is found
  2. # Feel free to use it for whatever you want -even for creating
  3. # cyborg-shark with atomic desintegrator that destroy the world.
  4.  
  5. ls -laR | sed -r -e 's/  +/ /g' -e 's/^\..*//g' -e 's/^[a-z]+ [0-9]+$//g' |cut -s -d" " -f 4|uniq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement