HP3000-L Archives

May 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Fri, 9 May 1997 15:26:36 -0700
Content-Type:
text/plain
Parts/Attachments:
Re: (23 lines)
Bruce replies:
> G. wrts:
> >$ cd ../SPL
> >$ wc -l * | grep total
> >
> >G.
>
> O. Qt.

Actually that's an inefficient and potentially buggy way to do it.

It probably ought to be:

$ wc -l * | tail -1

and, of course, it won't work for QEDIT files and will give you
interesting results if anything in the directory isn't a text file.

I was surprised to find that wc doesn't have an option to only
produce the total line.

G.

ATOM RSS1 RSS2