没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
The
Programming
~
"
·.
Language
PolyAWK-
The
Toolbox
Language·
Auru:o
V.
AHo
BRIAN
W.I<ERNIGHAN
PETER
J.
WEINBERGER
TheAWK4
Programming~
Language
TheA
WI(.
Programming~
Language
ALFRED
V.
AHo
BRIAN
w.
KERNIGHAN
PETER
J.
WEINBERGER
AT
& T Bell Laboratories
Murray Hill, New Jersey
A
••
ADDISON-WESLEY PUBLISHING COMPANY
Reading, Massachusetts •
Menlo
Park,
California •
New
York
Don
Mills, Ontario •
Wokingham,
England
•
Amsterdam
•
Bonn
Sydney
• Singapore •
Tokyo
•
Madrid
•
Bogota
Santiago •
San
Juan
This book
is
in the Addison-Wesley Series in
Computer
Science
Michael A. Harrison
Consulting Editor
Library
of
Congress
Cataloging-in-Publication
Data
Aho, Alfred
V.
The
AWK
programming language.
Includes index.
I.
AWK
(Computer program language) I. Kernighan,
Brian
W.
II.
Weinberger, Peter
J.
III.
Title.
QA76.73.A95A35 1988
005.13'3 87-17566
ISBN 0-201-07981-X
This
book was typeset in
Times
Roman
and
Courier by
the
authors,
using
an
Autologic
APS-5
phototypesetter
and
a
DEC
VAX
8550 running
the
9th
Edition
of
the
UNIX~
operating
system.
-
~
-
ATs.T
Copyright
c 1988
by
Bell Telephone Laboratories, Incorporated.
All rights reserved.
No
part
of
this publication
may
be
reproduced, stored
in
a retrieval
system,
or
transmitted,
in
any
form
or
by
any means, electronic, mechanical, photocopy-
ing, recording,
or
otherwise, without
the
prior written permission
of
the
publisher.
Printed
in
the
United
States
of
America. Published simultaneously in
Canada.
UNIX
is a registered
trademark
of
AT&T.
DEFGHIJ-AL-898
PREFACE
Computer users spend a lot
of
time doing simple, mechanical
data
manipula-
tion - changing the format of data, checking its validity, finding items with
some property, adding up numbers, printing reports, and the like. All
of
these
jobs ought to be mechanized, but it's a real nuisance to have to write a special-
purpose program in a standard language like C or Pascal each time such a task
comes up.
Awk
is
a programming language
that
makes it possible to handle such tasks
with very short programs, often only one or two lines long. An awk program
is
a sequence
of
patterns and actions that tell what to look for in the input data
and what to do when it's found. Awk searches a set of files for lines matched
by any
of
the patterns; when a matching line
is
found, the corresponding action
is
performed. A pattern can select lines
by
combinations
of
regular expressions
and comparison operations
on
strings, numbers, fields, variables, and array ele-
ments. Actions may perform arbitrary processing
on
selected lines; the action
language looks like C but there are
no
declarations, and strings and numbers
are built-in
data
types.
Awk scans the input files and splits each input line into fields automatically.
Because so many things are automatic - input, field splitting, storage manage-
ment, initialization - awk programs are usually much smaller than they would
be in a more conventional language. Thus one common use
of
awk
is
for the
kind of
data
manipulation suggested above. Programs, a line or two long, are
composed
at
the keyboard, run once, then discarded. In effect, awk
is
a
general-purpose programmable tool that can reprace a host
of
specialized tools
or programs.
The same brevity of expression and convenience
of
operations make awk
valuable for prototyping larger programs.
One starts with a
few
lines, then
refines the program until it does the desired job, experimenting with designs by
trying alternatives quickly. Since programs are short, it's easy to get started,
and easy to
start
over when experience suggests a different direction. And it's
straightforward to translate an awk program into another language once the
design
is
right.
iii
剩余224页未读,继续阅读
资源评论
- lohanifer2015-01-16本书是一部经典。上传者的介绍不准确,本说作者不是"开源界一位大牛"而是三位Aho,Kernighan, 和Weinberger,相信学习计算机专业的都知道这三位的大名。
- iDev92015-06-06AWK:Alfred Aho, Peter Weinberger,Brian Kernighan的缩写,三位大牛的书应该是相当好的,在亚马孙卖117美元!
zhlh_xt
- 粉丝: 46
- 资源: 70
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现对表面肌电信号进行归一化处理,并对归一化后的图形显示 .rar
- 基于matlab实现单级倒立摆的 T-S 模型 包括 LMI 程序源码
- 图书管理系统(struts+hibernate+spring+ext).rar
- 基于matlab实现此压缩包包含语音信号处理中的语音变声代码加音频.rar
- STM32使用PWM驱动舵机并通过OLED显示
- 基于matlab实现车辆路径规划;遗传算法;matlab代码.rar
- 图书管理系统(struts+hibernate+spring)130225.rar
- 基于matlab实现采用标量衍射理论,实现菲涅尔衍射和夫琅禾费衍射,对光波的波前传播和数字全息的应用有帮助.rar
- JavaScript版去除链表重复元素
- 微信小程序项目-功德木鱼(带设置面板-自定义文字、可选字体颜色、可选木鱼样式)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功