- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command 'let'
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО07-05-2004 03:01 AM
тАО07-05-2004 03:01 AM
#!/usr/bin/ksh
ADD=0
for i in $(vxprint -Aht | grep 'v ' | awk '{print $6}')
do
let ADD=$i+$ADD
echo $ADD
done
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 03:07 AM
тАО07-05-2004 03:07 AM
Re: command 'let'
ADD=$(( $i + $ADD))
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 03:13 AM
тАО07-05-2004 03:13 AM
Re: command 'let'
...
2125725696
-1477181440
515112960
...
does not work (sorry)!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 03:16 AM
тАО07-05-2004 03:16 AM
Re: command 'let'
TOTAL=`$(vxprint -Aht | grep 'v ' | awk '{print $6}') | awk 'BEGIN {tot=0} $2 == "total" {tot=tot+$1} END`
Or something like that - don't have vx on my servers so I can't test it...
But I do something like this:
ttldisk=`df -t -l | awk 'BEGIN {tot=0} $2 == "total" {tot=tot+$1} END {print (tot*512)/1024/1024/1024}'`
Rgds...Geoff
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 03:22 AM
тАО07-05-2004 03:22 AM
Re: command 'let'
argus:/# typeset -i T
argus:/# typeset -i P
argus:/# T=2125725696
argus:/# echo $T
2125725696
argus:/# P=-1477181440
argus:/# echo $P
-1477181440
argus:/# T=$T+$P; echo $T
648544256
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 03:23 AM
- Tags:
- bc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 07:28 AM
тАО07-05-2004 07:28 AM
Re: command 'let'
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 11:24 PM
тАО07-05-2004 11:24 PM
Re: command 'let'
if someone of us could help you, would you mind assining points ?
Cheers
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2004 11:33 PM
тАО07-05-2004 11:33 PM
Re: command 'let'
10240000
13312000
15933440
16138240
16449536
20643840
24838144
27910144
29106176
33816576
44302336
55836672
81002496
206831616
238288896
290717696
306446336
327417856
348389376
364118016
374603776
385089536
395575296
432275456
484704256
537133056
589561856
594804736
605290496
919863296
1129578496
1161035776
1192493056
1223950336
1244921856
2083782656
2104754176
2125725696
2817785856
4810080256
4852023296
4966567936
4971810816
4988588032
4993830912
5203546112
5207740416
5215080448
Sorry for the late points!
tnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2012 01:28 AM
тАО05-28-2012 01:28 AM
Re: command 'let'
64 bit integers should be supported in the latest ksh but not the Posix shell.