regex help on unix df

前端 未结 7 1847
耶瑟儿~
耶瑟儿~ 2020-12-02 01:22

I need some help tweaking my code to look for another attribute in this unix df output:

Ex.

Filesystem     Size    Used   Avail Capacity         


        
相关标签:
7条回答
  • 2020-12-02 02:06

    The easy perl way:

    perl -MFilesys::Df -e 'print df("/tmp")->{bavail}, "\n"'
    
    0 讨论(0)
提交回复
热议问题