Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Searching with awk

Up
vote
Down

The awk utility provides a powerful way to search for text strings using regex. This great tool will help you solve many Bash shell script needs.
If you wanted to perform simple operations on a text file, access_log for example, awk is a very useful and simple tool to use. The following example, show the command awk searching for the text string “Debian” in access_log for an apache web server. It will return the lines that contain the text string. The reason for the single quotes instead of the double quotes is to prevent the shell from interpreting characters within the program as special shell characters
 read more | mail this link | score:7599 | -aweber, December 13, 2010
More Software articles...

Abstract Art on stretched canvas

apps headlines

Autotrash – Purges files from your trash based on age and/or filename

How to install HotShots on Fedora 19 and Ubuntu 13.04

OcenAudio: Easy audio editor

Tutorial: Install Opera Widgets on Ubuntu 11.10

Introduction: The Enlightenment 17 Window Manager for X (Ubuntu 11.10)

Three Quake like drop-down terminals for Linux

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin