110 likes | 270 Views
Gawk in ALEPH. Dror Berger - The National Library of Israel & IUCC (Inter-University Computation C entre). The problem that led us to gawk.
E N D
Gawk in ALEPH Dror Berger - The National Library of Israel & IUCC (Inter-University Computation Centre) Gawk in ALEPH - Dror Berger
The problem that led us to gawk We need to write programmes that will extend and improve the current capabilities of the libraries’ software (In this case, ALEPH). Library staff usually has no programmers or computer science graduates, and on the other hand, the institutions computation centers do not have library oriented personal. Gawk in ALEPH - Dror Berger
The problem that led us to gawk We needed a programming language that can be maintained and manipulated, via simple cut-and-paste procedures, by library staff that has no formal programming education. Gawk in ALEPH - Dror Berger
What is gawk • Gawk is the GNU version of the commonly available UNIX awk program, a popular stream editor. • An open source programme with a large developers community. • Last version: 3.1.7 released on 23-Jul-2009 Gawk in ALEPH - Dror Berger
Why gawk? • Programs in awk are different from programs in most other languages, because awk programs are "data-driven": you describe the data you want to work with and then what to do when you find it. Most other languages are "procedural." You have to describe, in great detail, every step the program is to take. When working with procedural languages, it is usually much harder to clearly describe the data your program will process. For this reason, awk programs are often refreshingly easy to read and write. Gawk in ALEPH - Dror Berger
Why gawk? • Portable and standard (Exactly as Perl). • Gawk interpreter makes it very easy to debug, even with no formal programming skills. • Fast. Loads an array of 8 Million system numbers in less than 10 seconds. Gawk in ALEPH - Dror Berger
Fields in awk Gawk in ALEPH - Dror Berger
Fields in gawk - ALEPH Gawk in ALEPH - Dror Berger
Fields in gawk - ALEPH Gawk in ALEPH - Dror Berger
Higher level This is as difficult as it gets, and still much more readable than Perl or Java. Gawk in ALEPH - Dror Berger
What else do we do with gawk? • Test and correct cataloguing records. • Test and correct information stored in sequential Z records, such as Z30, Z305 etc… • All text manipulation in programmes and services in our library environment. Gawk in ALEPH - Dror Berger