GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: du -sk
Operating System - HP-UX
1852320
Members
4450
Online
104065
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
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
03-22-2004 05:51 PM
03-22-2004 05:51 PM
is it possible calculate the size of files in the directory? for example: du -sk /tmp/m* ,
That's how to calcualte all size of m* in /tmp . Thanks.
That's how to calcualte all size of m* in /tmp . Thanks.
Hero
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 06:02 PM
03-22-2004 06:02 PM
Solution
Don't know about such a command. But it could easily be scripted. Something along the line of:
TOTAL=0
for SIZE in $(du -sk /tmp/s* | cut -f1 -d" ")
do
let TOTAL=$TOTAL+$SIZE
done
print $TOTAL
Thats a tab in the quotes.
Regards,
Trond
TOTAL=0
for SIZE in $(du -sk /tmp/s* | cut -f1 -d" ")
do
let TOTAL=$TOTAL+$SIZE
done
print $TOTAL
Thats a tab in the quotes.
Regards,
Trond
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 2026 Hewlett Packard Enterprise Development LP