You are on page 1of 9

Date

CLwk Page No.

wKue e e p0 Cess1mq

tbug es kerargna
NR t faint ne nUiha
Syntax e C m s coroPlete ecoa
-Piss+ Co lump
ChtekApH t e u ne

apt i0nS celeckinm Caiteaia ahen lenanoe

Qwk managei lencme

EaawK /managu paind


naJone

k r9apa9e pyin enaon


1enab
awk 2anogen/ pait
S2 ncLme e S ala y

| a wk- F]'/Sa [Ka J Se na/ 1ename

at1dSepasale

LwJK-F6 3 NR,
N R - - 3 , NR==6p7ip+ NR,
.3,$6 lename
piay_ine no. NRbuliRng NaLiapLe
NR umbe
Date
o age No.

P p he 3 5,6 ColumD 2
Colutm 3 e 9mdicade +ha

bualttngvcustable

NF-num be O tds
FS d epasoda
OFS OutpotPseld Sepasao
Rs Reeord Sepasodd
FILE NAME Poi4 hename O

Aktc Lrnoe C3ueroent


ARv S+ O Agument

pointf ormaiog octPOt


1 ak-F Caalg9 2la7+
Lwal prntf
12 d \n" NR, $2 $5
6 ulen me
Qwkf 1 1
diaeaco
3 ChLg Ym.ao 1 paintf lod-2o 5

us-F 3 disea dd 1
ptintf 0l 20S -s
Date:
Page No.:

aok E

Dlo20S o -12s
awk- n t NF,NF Empst

Outp ur
ouNk- F"I NR-=3, NR = 6 f NR, S2,

3 SLmit ChaukTO baat d.9. 000


baxu Seogua draecte PooD
K
upta Chatrm a
Chancha Sanghevi dueclo 670o

CLwk -F '/sarkx]ea e m p

flen
fLLE NArME atK PILE NAmE Emp
prnt ai l?ne
tott
Ls
Page No.:
T Ad av eC alai f mpty
Duog (amdais 3 type
BEGLN actim
Body
3J END

Ermpa wk- aik

BEIN
pnf t t Em ployee Absbat o
$ 6 4500 c0 cunt t+ 4ott $6
Priif1.34 . o S , -/25 /\n
Kogo2, fa C
a t 1 h

EnND

_prindf Dthe aveage Bas1CPay s


.6d tot |oon

awK F" Empatok aco Smp.lst

Pecor
Date
lot p Page No.

Pecodbo LaSt ame

bvumbe O ecoids Proces ced e 5


The 9le na me 1S em p1s

Local bo st) v Sample awk


BeG7N 1 66 a s t n Q m t
Pn Recozd n0
Hpinif *NR 2sa
END
Pint Nmbf necords pooceS Sed
75
CLe NR

FaLeame s PLE NAOE


E3) P

awk -P"1" ScumPe acuR Eo P. \st


Date
Page No,:

deaoe.o
say constod e d de ctaxe he norent
9 59S sed
Pray
toy Elenehts O o1-Hal12 ed o 24sD
O n pty 3hang nless tlalt2ed
Eeplcle
P nuy pen automaltcalty_
The inden Can be bitaally arfbing.
CaD uen be a Jagng

Sole 8 aarke Lang ONeao

BEG
FS- "
Pantf" / , L85\n Bagtc Da Ha Gros
Sales ooketng
Calcul ade he dabra g the 97 oSS pay
pa
O 25 $ 6 bra0-5 Gsgp:$6 thaatda
Store b e aggeq ode Seposa4e aavayS
to17+ # 463tot J + 7daj tot(374 =h0e
Aot[uJ+
KoUnt ++

END4FPrmtthe aUexag@s
vesage 1S4 S
prid ,54%sd\n
toiJ koUnt tot la7 /koort, tot[3)/kouni t
Date
Page No.

Run bowk- mpawk.awk Emp8f


OutpU
Basit DA HYa G1oSS
Avisage 681a 1S679

BASLL HRA GneOSS


6O00 1S00 3 060 OSOO
600o SOO 000 LOSOO

o0 5350 P2S
S6O0 2300
00o 1250 2soc
B2-00 2oo 4-3SO
&000
LO0O
250 LSoO SAro
G212 1-03-12s 34 06.2 1?7
o9S pay

to41/toont
Cndutio
Date
Page No.:
Bysheo Cail
EheCcoOn
APPlicotion D O g p c m oles e

Scenf
ope n C
HgeLpid c PracesS ?d

CaxKC) J f Cetes eale) e uo Ch? lo prOcesg

SPawns Tt C7e cae ChLel proCess

LwWait C) cait 4 Ch1lc p Ocesc

Comple-e t _ °
4Ex H(-)
e eCdc c) Sae C-LP CL u Eectable

foak l d etUO

PcARnts
Ve) t loe Cepte

mmKdo Aun PH Set


Cc
Date
bgetecgad
Page No.:

nclttdedsyS/Lpeb mc in

nclude stdio.h
tnctud e run 1 Sld-h
mo 2o

picd_po
pidfoik L a chttd proces
p1d 0) E2yo1 accceke.d
Lpiinip CStdez FoskcaaLed
EXT-C)s

LhldPxocest
ceclp chtn.la SNuLL)

/pcae-l_ proceSS
wat NULL)
pintf Ch l6 Co pct te
c t Co)

You might also like