Kentrox AI296 manual Head, This command displays the first few lines of a file

Models: AI296

1 404
Download 404 pages 11.96 Kb
Page 310
Image 310

AI296 Version 9.8x User’s Guide

AI296 Commands: head

head

Description

This command displays the first few lines of a file.

Command Type

shell

Formats

head [ -nlines ] file_name ...

Parameters

[ -nlines ]

Defines the number of lines to display. The default is 20.

file_name

Defines the name of the file to display.

 



 

Note: Several filenames can be entered with this command.

Examples

This example displays the first 30 lines of file core.txt.

[296]head -n 30 core.txt

 

 

 

 

 

 

 

296 crash dump at 14:16:30, 07-20-2004 (up 0

days 00:31:46):

Version 96HPC960.000007 created

on

2004-03-29 at 09:43:35

Crash Code= 000000ad

 

 

 

 

 

 

 

 

PC= 00000000

SP=

00000000

IMMR=

00000000

MSR= 00000000

GPR00= 00000000

GPR01= 00000000

 

GPR02=

00000000

GPR03= 00000000

GPR04= 00000000

 

GPR05=

00000000

GPR06= 00000000

GPR07= 00000000

 

GPR08=

00000000

GPR09= 00000000

GPR10= 00000000

 

GPR11=

00000000

GPR12= 00000000

GPR13= 00000000

 

GPR14=

00000000

GPR15= 00000000

GPR16= 00000000

 

GPR17=

00000000

GPR18= 00000000

GPR19= 00000000

 

GPR20=

00000000

GPR21= 00000000

GPR22= 00000000

 

GPR23=

00000000

GPR24= 00000000

GPR25= 00000000

 

GPR26=

00000000

GPR27= 00000000

GPR28= 00000000

 

GPR29=

00000000

GPR30= 00000000

GPR31= 00000000

 

 

 

 

 

CR= 00000000

SSR0= 00000000

SSR1= 00000000

 

LR= 00000000

XER= 00000000

CTR=

00000000

 

PVR= 00500000

PSOS1= 00000000

PSOS2=

00000000

PSOS3= 00000000

Stack dump:

 

 

 

 

 

 

 

 

Caller

200082c0: 9421 ffc8

7c08

02a6 bea1

000c

9001

003c

[see LR]

200082d0: 7c7f

1b78

3ae0 0000 4800

1419

7c76

1b78

 

200082e0:

56d6

001e

3b16

3e82 a338

0000

572c

043e

 

200082f0: 7d96 6214

3bcc 2004 82be

0000

7ebd

ab78

 

20008300: 7fe3

fb78

4801

76bd 7c7c

1b78

578a

043e

 

20008310: 2c0a

0100

4081

0008 3b80

0100

3b60

0000

 

20008320:

576c

043e

578b

043e 7c0c

5800

4080

001c

 

[296]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9-52

Page 310
Image 310
Kentrox AI296 manual Head, This command displays the first few lines of a file, Defines the name of the file to display