07-06-2007
Hi,
I'm getting following result
#cat file1 | awk '{print $5","basename($9)}'
awk: Function basename is not defined.
The input line number is 1.
The source line number is 1.
Regards,
Ronald.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to know how to enter a unix path in a cgi script for a guest book:
example:
My URL is http://www.kitachi.info
I have an html file in the main folder on my site, the file is called :
gbook.html
what would the correct unix path for this file be ???
the part of the script... (1 Reply)
Discussion started by: akitachi
1 Replies
2. Solaris
I need to get a few details from the command line. I need to get the kilobytes per second that my server is transfering to another or has available and I need to test the connection to make sure that its a sound connection. I also need to keep track of the response time.
I have been playing... (1 Reply)
Discussion started by: nowayin
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please help me in unix command
Query:
====
File contains data along with date and time stamp like,
..
Date: 08:23:2005 01:00:00
method: xyz
init variables
Date 08:23:2005 01:00:01
method: xyz
finished init variable
.... (2 Replies)
Discussion started by: thaduka
2 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please help me in sort out the command to get the following command
say File abc.log contains
....
......
This is the first line
This is the second line
This is the third line
This is the fourth line
This is the fifth line
This is the first line
This is the... (7 Replies)
Discussion started by: thaduka
7 Replies
5. UNIX for Advanced & Expert Users
Hi All,
Please help me in writting the script
File contains:
=========
11424444, <basicpage>
jfalfksf
<dateofbirth>10/02/2005</dateofbrith>
jkaklgja
lg'd
....
11423224444, <basicpage>
jfalfksf
<dateofbirth>11/02/2005</dateofbrith>
jkaklgja
lg'd
11433523224444, <basicpage>... (1 Reply)
Discussion started by: thaduka
1 Replies
6. Shell Programming and Scripting
Hi guys,
I want to find the number of records in a particular file and store that value in any other variable. I am trying this below command but it is not working and giving me an error "Uninary Operator Expected".
say I have taken a variable name 'count' in which I have to store the no. of... (7 Replies)
Discussion started by: dtidke
7 Replies
7. Cybersecurity
Hi,
I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this.
Thanks
Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies
8. Shell Programming and Scripting
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies
9. Shell Programming and Scripting
Hi Firends,
I wanted to extract the first record of the file which starst with character say "X". And I tried an awk command which works when i try to execute it individually:
awk 'substr($1,1,1)=="X"' inputfile.txt
But when I use the same command in my script for which I am passing the... (2 Replies)
Discussion started by: Ajay Venkatesan
2 Replies
10. UNIX for Beginners Questions & Answers
I have requirement to search for a text in the file and retrieve required lines that is user defined with unix command.
Eg:
Find the text UNIX in the below file and need to return Test 8 & Test 9
Test 1
Test 2
Test 3
Test 4
UNIX
Test 5
Test 6
Test 7
Test 8
Test 9
Result can... (8 Replies)
Discussion started by: Arunkumarsak4
8 Replies
LEARN ABOUT DEBIAN
ident2
ident2(8) System Manager's Manual ident2(8)
NAME
ident2 - An advanced ident daemon
SYNOPSIS
ident2 [options]
DESCRIPTION
ident2 is an advanced ident daemon, which can run as an inetd service or on it's own. It has various features such as user defined and ran-
dom replies, extensive logging, and full administrative control.
OPTIONS
The program follows the usual GNU syntax command-line unless it is unsupported on your system. GNU options begin with two dashes(`-') and
have much more descriptive names.
-h, --help
Show summary of options.
-u, --usage
Shows example command lines
-v, --version
Show version information
-l, --license
Show licensing information
-a, --force-inetd
Force inetd mode, if autodetection isn't working.
-d, --force-daemon
Force standalone daemon, if autodetection isn't working.
-i, --use-user-ident
Allow user defined ident replies. Just do a echo 'ident ar' > ~/.ident to change your ident reply.
-y, --user-reply-file
File ident2 should look for in user's homedir for replies. Default is ~/.ident
-n, --allow-noident-file
Disable replies for user if user has a ~/.noident file. This behavior is disabled by default.
-o, --client-timeout
Clients timeout after this many seconds
-s, --dont-change-uid
Ident2 will normally try to change it's uid to something less privileged if it finds it's uid to be 0. This option disables this
behavior altogether.
-r, --always-random
Always send a random reply, regardless of what kind of request the client made. This is useful for abusing the ident protocol as
well as assisting outgoing IP masqueraded connections.
-m, --daemon-maxclients
Daemon-only: Accept no more than this many connections at a time.
-p, --daemon-port
Daemon-only: Bind this port, instead of 'auth' aka 113
SEE ALSO
inetd(8), inetd.conf(5)
AUTHOR
This manual page was written by Alexander Reelsen <ar@rhwd.net>, for the Debian GNU/Linux system (but may be used by others).
GNU ident2(8)