Convert between byte count and “human-readable” string

前端 未结 2 1328
天命终不由人
天命终不由人 2021-02-20 00:48

Is there a shell command that simply converts back and forth between a number string in bytes and the \"human-readable\" number string offered by some commands via the -h

2条回答
  •  花落未央
    2021-02-20 00:49

    There is no standard (cross-platform) tool to do it. But solution using awk is described here

提交回复
热议问题