How to match the file permissions got after command "ls -l" ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • perlid
    New Member
    • Apr 2007
    • 1

    How to match the file permissions got after command "ls -l" ?

    Hi,
    I'm trying to match the characters "-rwx ********".
    How to match them ? need help.
  • tonreup
    New Member
    • Apr 2007
    • 1

    #2
    Originally posted by perlid
    Hi,
    I'm trying to match the characters "-rwx ********".
    How to match them ? need help.
    hi, i guess u have to use the regular expression to match it.

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      Next time you ask a question please post the code you have tried so far:

      Code:
      /-rwx \*{8}/

      Comment

      • savanm
        New Member
        • Oct 2006
        • 85

        #4
        Hi,
        When ever u post ur question, tel ur need briefly with exampl nd ur code

        $temp=~/"-rwx([^"]+)"/g;

        This may satisfy ur need
        Thanx

        Comment

        Working...