I am currently using this below command for getting the total snapshot usage of the storage, but this will only show the value in
G not in
# isi_classic snapshot usage | tail -n 1 | egrep -o "[+-]?[0-9]+[.]?[0-9]([eE][+-])?[0-9]G" 621G
Is there any way to match both G & T in one command and the get the exact output?
# isi_classic snapshot usage [snapid 1653, delete pending] 0 n/a (R) 0.00% (T) ifs_daily-s1-nov01_20 262G n/a (R) 0.46% (T) ifs_weeky-s1-nov01_20 176G n/a (R) 0.31% (T) 18T n/a (R) 31.37% (T)
Actual output is as shown below
isi_classic snapshot usage | tail -n 1 621G n/a (R) 1.08% (T)