This mixes up K sized files with M sized files so it tells me 332K is bigger than 255M. Does that go back to the UTF-8 encoding issue. I came up with another method that gets me what I want in directories with Gig files in them. It doesn’t sort G, M and K appropriately though.
sudo du -ckh * | sort -rn |egrep ‘[0-9]G[[:space:]]’
Take the -h out of the du, that makes them have the M, G and K on there, I added that right before I posted, because I am not always good at looking at the longer numbers. Without that it works as you want it too, just not with the human readable marker at the end.
This mixes up K sized files with M sized files so it tells me 332K is bigger than 255M. Does that go back to the UTF-8 encoding issue. I came up with another method that gets me what I want in directories with Gig files in them. It doesn’t sort G, M and K appropriately though.
sudo du -ckh * | sort -rn |egrep ‘[0-9]G[[:space:]]’
Take the -h out of the du, that makes them have the M, G and K on there, I added that right before I posted, because I am not always good at looking at the longer numbers. Without that it works as you want it too, just not with the human readable marker at the end.
:-) I like the human readable markers too. All those digits get confused inside my little brain :-)