Why are you using `ls` and then `grep` twice? Wouldn't it make more sense to use `stat` on the actual swap file to determine its size?