[PLUG] cut delimiter question
Chris Berry
cberry at davistl.com
Mon Jun 11 15:19:13 UTC 2012
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 <rshepard at appl-ecosys.com> 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
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
More information about the PLUG
mailing list