On Mon, 21 Jul 2003, Jeff Schaller wrote:
> Boy, reminds me of the old "useless use of cat" award... I always
> use:
I've got a bunch of those on the shelf here, anyone need one?
Mike
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTE
try "sed -n 'x p; x q' filename "
That will print only line x
On Monday 21 July 2003 14:54, Rus Foster wrote:
> Hi All,
> No strictly on topic but can anyone think of a better way to print out
> line x of a file in Shell Script. Best I have so far is (in pseudo code)
>
> cat /tmp/file | head -$x |
Rus Foster said on Mon, Jul 21, 2003 at 11:54:21AM -0700:
> Hi All,
> No strictly on topic but can anyone think of a better way to print out
> line x of a file in Shell Script. Best I have so far is (in pseudo code)
>
> cat /tmp/file | head -$x | tail -$x+1
>
> Anything better or a perl one liner
On Mon, 21 Jul 2003, Rus Foster wrote:
> No strictly on topic but can anyone think of a better way to
> print out line x of a file in Shell Script. Best I have so far
> is (in pseudo code)
>
> cat /tmp/file | head -$x | tail -$x+1
>
> Anything better or a perl one liner?
Boy, reminds me of the ol
4 matches
Mail list logo