savetheWorld 1186066359 learn Use stat instead of ls. Its much easier to parse, and its safer and more deterministic as well. greycat 1192646272 forget greycat 1192646314 learn The stat(1) command, while lovely and all, is GNU/Linux specific. (And not even portable, option-wise, between older and newer GNU systems.) Great if you have it, but you can't count on it being present or having any specific flag. lhunath 1364661122 forget