awkさまさま
cat /proc/$$/smaps | grep -i swap | awk 'BEGIN{sum=0}{sum+=$2}END{print sum}'
More than 5 years have passed since last update.
awkさまさま
cat /proc/$$/smaps | grep -i swap | awk 'BEGIN{sum=0}{sum+=$2}END{print sum}'
Register as a new user and use Qiita more conveniently