Sponsored Content
Top Forums Shell Programming and Scripting [Solved] Help understanding this code!! Post 302869301 by Scrutinizer on Wednesday 30th of October 2013 05:01:05 AM
Old 10-30-2013
awk code consists of a begin, end and middle section. The middle section is executed per record or line and so there is an implicit loop. Any section can be omitted. The section you posted is from the middle section, and so is excuted by line. $i means evalute i and use the field that corresponds to that number, for example if i = 2 then $i means $2

Last edited by Scrutinizer; 10-30-2013 at 06:11 AM..
This User Gave Thanks to Scrutinizer For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in understanding thisperl code.

Can any body explains the under given lines of code i have difficulties in understanding it, my $errorlog = "/var/log/controler.log"; &initLanguage($language); &launchCbox(); sub launchCbox { ... (1 Reply)
Discussion started by: Raheel Hassan
1 Replies

2. UNIX for Dummies Questions & Answers

Understanding Code in IF LOOP

Hello All, I would like to know and understand the difference between the below 3 IF loops and also if possible what are the different other parameters i could use other than those mentioed in the below lF LOOP conditions, appreciate your help. Thanks, Sam. (1 Reply)
Discussion started by: Ariean
1 Replies

3. Shell Programming and Scripting

Problems understanding example code

I am really new to UNIX and programming in general and so apologies if this thread is a bit simple. I have searched and found a piece of sample code for a training program I am currently undertaking, but seeing as I am relatively new, I dont completely understand how it works. Here is the... (1 Reply)
Discussion started by: Makaer
1 Replies

4. UNIX for Dummies Questions & Answers

Problems understanding example code

I am really new to UNIX and programming in general and so apologies if this thread is a bit simple. I have searched and found a piece of sample code for a training program I am currently undertaking, but seeing as I am relatively new, I dont completely understand how it works. Here is the... (6 Replies)
Discussion started by: Makaer
6 Replies

5. UNIX Desktop Questions & Answers

Understanding the code

hello all, May i know what is this "DEBUG_ME $DEBUG_CMD main" doing in the below code. I am confused with alias also "alias DEBUG_ME='#'". Thanks for your help. set -x alias DEBUG_ME='#' if ; then . /product/apps/informatica/v7/pc/ExtProc/debug.ksh "$1" fi # Declaring the... (1 Reply)
Discussion started by: Ariean
1 Replies

6. Shell Programming and Scripting

Help understanding Perl code.

Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean: $files_lim =~ (/^\d*$/) $files_lim =~ (/^\d*h$/)$files_age =~ s/h//The code where this was... (0 Replies)
Discussion started by: RedSpyder
0 Replies

7. Shell Programming and Scripting

Help understanding some Perl code.

Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean: $files_lim =~ (/^\d*$/) $files_lim =~ (/^\d*h$/) $files_age =~ s/h// The code where... (2 Replies)
Discussion started by: RedSpyder
2 Replies

8. Programming

Understanding perl code

What is the difference between the two statements below? A: $a->{"$fruit"}->{"$color"}->{size} = $size B: $size = $a->{"$fruit"}->{"$color"}->{size} Please assist. Thanks! (0 Replies)
Discussion started by: onlinelearner02
0 Replies

9. UNIX for Dummies Questions & Answers

[Solved] Need help understanding ksh scripting.

Can any one please tell me where the error in below script. Output is not as per my requirement. if condition not comparing the result of record count of a file with 1. where is the pbm in my script? Appreciate your help.. #!/bin/ksh #Module- #Summary- To move the file to direcotries if... (9 Replies)
Discussion started by: shivadanam
9 Replies

10. UNIX for Dummies Questions & Answers

Understanding bash code

I am not able to understand below line in unix bash shell.Could anyone explain what it will do result="${path1}/*${var1}*${var2}*wssreligibleitem*.csv" path1 is defined and it is a directory path var1 is defined and it holds string value like abc var2 is defined and it holds string value like... (6 Replies)
Discussion started by: vamsi.valiveti
6 Replies
miprod.conf(4)						     Kernel Interfaces Manual						    miprod.conf(4)

NAME
miprod.conf - Mobile IPv4 Route Optimization configuration file SYNOPSIS
(default file name) DESCRIPTION
When invoked, the Mobile IPv4 Route Optimization daemon, reads its configuration information from its default file name. This file is created by Mobile IPv4's configuration program, This program requires 'root' access and this file must be created in order for to run correctly. Syntax The basic structure of the configuration file consists of one mandatory section and one optional section. They are delimited by curly braces in the form: . . . Each section generally contains a series of lines, each line providing the value for one configuration option in the form For the most part, white spaces are ignored and a line beginning with '#' comments out the rest of the line. The configuration file consists of two sections, and is mandatory section while is optional. The keys Section The section contains a list of authentication keys between the Correspondent Node (CN) and the Home Agent (HA) for authenticating Binding Update messages from the Home Agent. Syntax: These fields are: HA is the Home Agent IP address. spi is the Security Parameter Index, a 32-bit integer. Values 0-255 are reserved and cannot be used. algo is the hashing algorithm used for this security association. Accepted algorithms are hmac-md5 and md5. tstamp means to use time-stamping for replay protection. key is the authentication key (16 bytes). Each byte is entered in two digits separated by a space. The ether Section The section is optional and is used to specify the source IP address used when the daemon creates a tunnel to the Mobile Node or the For- eign Agent. The two labels for this section are and If this section is omitted, will do a gethostbyname() call for the local system to obtain an IP address for the source tunnel. The syntax and description for the two labels are given below. where value is the name of the network interface card that supports Mobile IPv4. where value is the primary IP address for interface given above. EXAMPLE
An example of a file is shown below. AUTHOR
was originally developed by Carnegie Mellon University to run on the the FreeBSD platform and was ported to HP-UX 11i v1 by Hewlett- Packard. This software is copyrighted 1995, 1996 by Carnegie Mellon University. SEE ALSO
miproconfig(1M). miprod.conf(4)
All times are GMT -4. The time now is 04:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy