Subject: | |
From: | |
Reply To: | Proudfoot, Bill |
Date: | Tue, 6 Mar 2001 16:31:28 -0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Pipe the output through awk '{print $6 $7 $8 $9}'
for the columns you're interested in,
Bill
> * +44 (0)151-235-3055
Fax: +44 (0)151-235-3151
> * mailto:[log in to unmask]
>
>
-----Original Message-----
From: Robert Mills [mailto:[log in to unmask]]
Sent: 06 March 2001 15:21
To: [log in to unmask]
Subject: [HP3000-L] 2 Posix Questions
I have a command file that executes the following command:
xeq /bin/ls "-ltr /SYSTEMS/LastLogon"
and gives the following output:
total 0
-rw-rw-rw- 1 DSHAW.PIN2000 SYSTEMS 0 Aug 24 2000
_DSHAW_PIN2000
-rw-rw-rw- 1 PLTEMP.WIN2000 SYSTEMS 0 Aug 30 2000
_PLTEMP_WIN2000
-rw-rw-rw- 1 SUE.WIN2000 SYSTEMS 0 Aug 31 2000 _SUE_WIN2000
-rw-rw-rw- 1 DOM.ECOMM SYSTEMS 0 Aug 31 2000 _DOM_ECOMM
-rw-rw-rw- 1 SPURS.PIN2000 SYSTEMS 0 Sep 4 2000
_SPURS_PIN2000
-rw-rw-rw- 1 LISA.ECOMM SYSTEMS 0 Sep 14 15:28 _LISA_ECOMM
-rw-rw-rw- 1 ROUND.PIN2000 SYSTEMS 0 Sep 18 18:22
_ROUND_PIN2000
-rw-rw-rw- 1 MNGR.AD2000 SYSTEMS 0 Sep 20 15:38
JEFF_MNGR_AD2000
-rw-rw-rw- 1 CSGW.PIN2000 SYSTEMS 0 Sep 22 10:05 _CSGW_PIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Sep 27 10:19 _ANNA_WIN2000
-rw-rw-rw- 1 ANDREA.WIN2000 SYSTEMS 0 Sep 28 19:04
_ANDREA_WIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Sep 29 16:38 _LEEB_WIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Oct 2 10:04 _KELLY_PIN2000
-rw-rw-rw- 1 PAULH.WINTEST SYSTEMS 0 Oct 2 19:39
_PAULH_WINTEST
-rw-rw-rw- 1 SNAPPR.PIN2000 SYSTEMS 0 Oct 3 18:32
_SNAPPR_PIN2000
-rw-rw-rw- 1 JANE.PIN2000 SYSTEMS 0 Oct 5 10:06 _JANE_PIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Oct 6 10:14 _ASHLEY_WIN2000
-rw-rw-rw- 1 MITZI.WIN2000 SYSTEMS 0 Oct 9 15:23
_MITZI_WIN2000
-rw-rw-rw- 1 STORES.WINTEST SYSTEMS 0 Oct 10 12:45
AUTO_STORES_WINTEST
<big snip>
Question 1:
Why has column 3 got a 0 instead of a user.account name in some of the
entries?
Question 2:
How do I stop the first 5 columns from displaying (I only need the date,
time and filename)? Do I need to use awk on the output from ls?
regards,
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Robert W.Mills (Systems Development Manager) |
|Windsong Services, St. Mary Cray, ENGLAND |
|Tel : +44 (0)1689 870622 x3005 |
|Fax : +44 (0)1689 899026 |
|Email: [log in to unmask] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
***********************************************************************
Confidentiality: This e-mail and its attachments are intended for the
above named recipient(s) only and may be confidential and/or
privileged. If they have come to you in error you must take no action
based on them, nor must you copy or disclose them or any part of their
contents to any person or organisation; please reply to this e-mail
and highlight the error immediately and delete this e-mail and its
attachments from your computer system.
Security Warning: Please note that this e-mail has been created in the
knowledge that Internet e-mail is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail and
its attachments are free from any virus, we advise that in keeping
with good computing practice the recipient should ensure they are
actually virus free
***********************************************************************
|
|
|