On Fri, Jul 21, 2006 at 09:43:12PM -0400, A. Costa wrote:
Typical problem: suppose we want to parse 'ls -l' to get file sizes.

Your first problem is trying to use ls as programmatic input. It's really a utility intended for human readability. Try using stat, either with -t or --printf, or find --printf.

If you really, really want to parse ls output, use something like awk or perl; cut is just not the right tool for that job.

Mike Stone


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to