Extract the column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilikesuresh
    New Member
    • Aug 2007
    • 47

    #1

    Extract the column

    Hi
    I want a program to get any column(For example created date of the file) that was given by ls -lrt command...
    Plz Help me out
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    Originally posted by ilikesuresh
    Hi
    I want a program to get any column(For example created date of the file) that was given by ls -lrt command...
    Plz Help me out
    ls -ltr |awk '{print $6 " " $7 " " $8}'

    Comment

    • ilikesuresh
      New Member
      • Aug 2007
      • 47

      #3
      Originally posted by ghostdog74
      ls -ltr |awk '{print $6 " " $7 " " $8}'
      Thanks Its working fine

      Comment

      Working...