background preloader

Scripting

Facebook Twitter

Groovy

Bash. Advanced Bash-Scripting Guide. AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys. An Introduction to awk. The awk programming language often gets overlooked for Perl, which is a more capable language. Out in the real world, however awk is found even more ubiquitously than Perl. It also has a smaller learning curve than Perl does, and awk can be used almost everywhere in system monitoring scripts, where efficiency is key. This brief tutorial is designed to help you get started in awk programming. The awk language is a small, C-style language designed for the processing of regularly formatted text. This usually includes database dumps and system log files. Awk's funny name comes from the names of its original authors, Alfred V. I began using awk to print specific fields in output. Ls -l /tmp/foobar | awk '{print $1"\t"$9}' This code takes some input, such as this: -rw-rw-rw- 1 root root 1 Jul 14 1997 tmpmsg and generates output like this: -rw-rw-rw- tmpmsg As shown, the code output only the first and ninth fields from the original input.

Have you figured it out yet? #! #! What's the problem? #!