I would generally use awk to do that, something like this: 

ls -alh | awk '{print $9 }'


Chris Berry
Linux Systems Administrator
Davis Tool
x521

>>> Rich Shepard <[email protected]> 6/11/2012 7:42 AM >>>
   On a long directory listing there are 8 fields: permissions, number of
links, owner/group, size, month, day, time, filename. If I want a list of
only filenames from cut I can specify the delimiter, but the listing is
delimited by one or more spaces. Trying -d" " seems to work for a single
space, and the man page (and my Google searches) haven't shown me how to
specify multiple spaces. Is there a generic 'white space' specification?

Rich


_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to