HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to calculate size...
Operating System - HP-UX
1833995
Members
3960
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2009 03:39 AM
11-27-2009 03:39 AM
Hi guys,
i would like to calculate the size of only a list of sorted files.how do i do it..
i eman is there any single line command to do it...
for example;
-rw-r--r-- 1 fnsonlg fnsgr 1136640 Oct 29 16:45 depp.dmp_gd
-rw-r--r-- 1 root sys 46392 Oct 29 16:51 depp.dmp.gz
-rw-r--r-- 1 root sys 419887 Nov 4 16:50 glif.dmp.gz
-rwxrwxrwx 1 root sys 5468892 Nov 5 12:20 gldm.dmp.gz
-rw-rw-rw- 1 root sys 8048640 Nov 6 12:06 fnsonlt0.tar
-rw-r--r-- 1 fnsonlx fnsxr 7029314 Nov 24 10:29 stmt.dmp.gz
-rw-r--r-- 1 fnsonlx fnsxr 33290044 Nov 24 11:13 invm.dmp.gz
-rw-r--r-- 1 fnsonlx fnsxr 39165152 Nov 24 11:15 tds.dmp.gz
from the above list i must only get the size of ll *dmp* in kilobytes
i would like to calculate the size of only a list of sorted files.how do i do it..
i eman is there any single line command to do it...
for example;
-rw-r--r-- 1 fnsonlg fnsgr 1136640 Oct 29 16:45 depp.dmp_gd
-rw-r--r-- 1 root sys 46392 Oct 29 16:51 depp.dmp.gz
-rw-r--r-- 1 root sys 419887 Nov 4 16:50 glif.dmp.gz
-rwxrwxrwx 1 root sys 5468892 Nov 5 12:20 gldm.dmp.gz
-rw-rw-rw- 1 root sys 8048640 Nov 6 12:06 fnsonlt0.tar
-rw-r--r-- 1 fnsonlx fnsxr 7029314 Nov 24 10:29 stmt.dmp.gz
-rw-r--r-- 1 fnsonlx fnsxr 33290044 Nov 24 11:13 invm.dmp.gz
-rw-r--r-- 1 fnsonlx fnsxr 39165152 Nov 24 11:15 tds.dmp.gz
from the above list i must only get the size of ll *dmp* in kilobytes
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2009 03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2009 04:10 AM
11-27-2009 04:10 AM
Re: how to calculate size...
You can use awk..
# ls -l | grep dmp* | awk '{print "Size of:", $9, ":" ,$5/1024, "Kb"}'
# ls -l | grep dmp* | awk '{print "Size of:", $9, ":" ,$5/1024, "Kb"}'
Don't fix what ain't broke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2009 04:20 AM
11-27-2009 04:20 AM
Re: how to calculate size...
thanx guys ....very much.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP