Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    68

    Unanswered: OS version 5.8 ls command

    hi to all
    os is OS version: 5.8
    1. i want to get files list for one particular owner .
    how to get a owner files list.
    2. how to get total files size of one particular extention.
    ex: i want to get size of *.txt files , in my folder.
    how to get.

    pl tell me this

    regards
    jagan
    Last edited by jagan_5378; 02-23-05 at 07:56.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    1) find . -user jagan
    2) ss=0;ls -s1 *.txt | while read s f; do ss=$(($ss + $s));done;print "total=$ss"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •