[PLUG] cut delimiter question
Ken Stephens
kens at cad2cam.com
Mon Jun 11 16:02:44 UTC 2012
Rich Shepard wrote:
> On Mon, 11 Jun 2012, Chris Berry wrote:
>
>> I would generally use awk to do that, something like this:
>> ls -alh | awk '{print $9 }'
> Chris,
>
> I thought of that but figured cut would be the better way. Apparenly not.
>
> Thanks,
>
> Rich
>
Rich,
Since long listing is formatted in columns, why not use byte-list option
'-b'?
>cut -b 44-132 file
Or some other large number for the final range.
Ken
More information about the PLUG
mailing list