Hi,i was a beginner in perl .please try to help m ein these areas.
If i use
du -sh
in my perl script i was getting output as
54M /home/abhinav/compare or 569M /home/abhinav/debug
But i want only the size that is either like 54m or 569m and i dont want the path
CAN u help me for retrieving only size
if i use
df /compare/
The output has all the below.
Filesystem 1K-blocks Used Available Use% Mounted on
xhd-filer2:/vol/vol7/sw_apps
506854848 425468096 81386752 84% /proj/sw_apps
but i want only availablespace and used percent into two variables...
Please try to help me