Archive: May, 2010

How To Use awk In Bash Scripting

How do I use awk pattern scanning and processing language under bash scripts? Can you provide a few examples? Awk is an excellent tool for building UNIX/Linux shell scripts. AWK is a programming language that is designed for processing text-based data, either in files or data streams, or using shell pipes. In other words you [...]



Bash Script: Read One Character At A Time

need to count one character at a time from input.txt. How do I read one character at a time under Linux / UNIX bash shell script? The read builtin can read one character at a time and syntax is as follows:   read -n 1 c echo $c   You can setup the while loop as [...]



Connect to SQL Server from command prompt – list tables and database

Q. How do I connect to Microsoft SQL Server from command prompt? I just wanted to see list of tables and database. A. MS- SQL Server is relational database management system. Its primary query language is Transact-SQL, an implementation of the ANSI/ISO standard Structured Query Language (SQL) used by both Microsoft and Sybase. There is [...]



Google AJAX API Parameter Added

Google announced that it is adding a new parameter to the RESTful interface, userip for its AJAX APIs, due to abuse. With the new parameter, developers have the option of supplying the IP address of the end-user on whose behalf they are making the API request. Doing this helps Google determine what is legitimate server-sided traffic [...]