From: Aleksey Cheusov on 31 Mar 2010 16:12 A few day ago I released runawk-0.21.0. As it can be efficiently used for writing oneliners (look for (***) marker in this text for the sample) and so called 10-liners I hope this announce will not treated as spam here. ------------------------------------------------------------ WHAT IS RunAWK: RunAWK is a small wrapper for the AWK interpreter that helps one write standalone AWK scripts. Its main feature is to provide a module/library system for AWK which is somewhat similar to Perl's "use" command. It also allows one to select a preferred AWK interpreter, to setup the environment for your scripts and provides other helpful features. As of this release RunAWK also contains 34 modules. ------------------------------------------------------------ SOURCES: MIT licensed http://freshmeat.net/projects/runawk/ http://sourceforge.net/projects/runawk/ ------------------------------------------------------------ MAJOR CHANGES IN RUNAWK-0.21.0: fixed: compilation failure on recent Linux-es (warn_unused_result attribute of system(3) function in recent glibc, this warning becomes critical due to -Werror). fixed: compilation failures on FreeBSD ("assignment discards qualifiers from pointer target type" warning which is critical with -Werror). fixed: compilation failure with Intel C Compiler. Again warning and -Werror. Now one can pass arguments to awk program specified with -e option after --, that is like the following runawk -e '<awk program>' -- <extra options for your program> New simple modules: - trim.awk: this modules provides a set of simple functions for trimming spaces from the string. - backslash_in.awk treats backslash symbol at the end of input line as "this line will continue on the next line". (***) $ cat ~/tmp/9.txt Some text here \ and here too. \ This is still the first line. This is the second. And this is third one that\ continues on the next line \ and the next line too. Ok, we finally have four lines of text. $ runawk -f backslash_in.awk -e '{print}' ~/tmp/9.txt Some text here and here too. This is still the first line. This is the second. And this is third one that continues on the next line and the next line too. Ok, we finally have four lines of text. $ - trim_in.awk trims spaces from input lines. - CR_in.awk removes CR symbols from input lines. -- Best regards, Aleksey Cheusov.
|
Pages: 1 Prev: ls -d does not do what I want/expect Next: Trying to get condition right. |