- 论坛徽章:
- 7
|
原帖由 luoweihao 于 2008-6-19 01:00 发表 ![]()
请问"urfile"前面的1是什么意思,我在书本上找不到有这个解析
The awk programming language
awk is a programming language that gets its name from the 3 people who invented it (Aho, Weinberger, and Kernighan). Because it was developed on a Unix operating system, its name is usually printed in lower-case ("awk") instead of capitalized ("Awk"). awk is distributed as free software, meaning that you don't have to pay anything for it and you can get the source code to build awk yourself .
It's not an "I can do anything" programming language like C++ or VisualBasic, although it can do a lot. awk excels at handling text and data files, the kind that are created in Notepad or (for example) HTML files. You wouldn't use awk to modify a Microsoft Word document or an Excel spreadsheet. However, if you take the Word document and Save As "Text Only" or if you take the Excel spreadsheet and Save As tab-delimited (*.txt) or comma-delimited (*.csv) output files, then awk could do a good job at handling them.
I like awk because it's concise. The shortest awk program that does anything useful is just 1 character:
awk 1 yourfile
感兴趣,请继续读完这篇
http://student.northpark.edu/pemente/awk.htm |
|