How would i use grep and ls togehter to list all directories with rwx permission?
Printable View
How would i use grep and ls togehter to list all directories with rwx permission?
Use the find command
i have to use ls and grep together
even if i wanted to use find i would not know how
Code:ls -al | grep "^drwx"
cool thanks...i'll assume thats right since i cant check it until monday
Hammer is always right!! the way that works is the | is called a filter. grep takes what the ls command gives it and does the check on it(of course in regex):)