ShopDreamUp AI ArtDreamUp
Deviation Actions
Suggested Deviants
Suggested Collections
You Might Like…
Featured in Groups
Comments8
Join the community to add your comment. Already a deviant? Log In
Fantastic set of bar graphs!
Was wondering if it was possible to incorporate a bash script for mounted drives so it would stack the bars automatically for drives that are mounted.
ie..
#!/bin/bash
cat /proc/mounts | awk '{
if ( $1 ~ /\/dev/ )
{
num_elem = split($2,str_array,"/")
if (str_array[num_elem] == "")
{
str_array[num_elem] = "/";
}
printf " ${color #98c2c7}%9.9s:$color ${fs_used %s} ${goto 130} ${fs_free %s} ${goto 190} ${color #78af78}${fs_bar 6 %s}\n", str_array[num_elem], $2, $2, $2
}
}'
Was wondering if it was possible to incorporate a bash script for mounted drives so it would stack the bars automatically for drives that are mounted.
ie..
#!/bin/bash
cat /proc/mounts | awk '{
if ( $1 ~ /\/dev/ )
{
num_elem = split($2,str_array,"/")
if (str_array[num_elem] == "")
{
str_array[num_elem] = "/";
}
printf " ${color #98c2c7}%9.9s:$color ${fs_used %s} ${goto 130} ${fs_free %s} ${goto 190} ${color #78af78}${fs_bar 6 %s}\n", str_array[num_elem], $2, $2, $2
}
}'