Hacker News new | past | comments | ask | show | jobs | submit login

> And if I never have to parse the output of ls -l using cut again, I will be a happy person.

Try stat instead, e.g.

    $ stat -c 'NAME: %n; OWNER: %U, SIZE: %s' * 
also supports --printf (see man stat).



It's not standard enough --- coreutils and OSX's work differently.


Yeah, same with the find -printf (at least macports can install coreutils and give you "gstat"). Portability is hard :-/ http://mywiki.wooledge.org/ParsingLs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: