Hi,
i have a function which return a variable .
serach ( paramatere) when i excute this function i get the result in the shell,
i want to print this result in a file by calling just the function.
how can i do it..
the code example is like that:
search ( )
{
..
}
the call... (0 Replies)
i want to print the data between two line numbers in file to another file.
which command should i use
i tried sed command . i am storing the line numbers in two variables say L1,L2. but $L1 and $L2 are not working in sed command.
is there any other command to do this
reply soon (5 Replies)
Below is the data content of file_1 and file_2:
file_1
>sample_1
FKGJGPOPOPOQA
ASDADWEEWERE
ASDAWEWQWRW
ASDASDASDASDD
file_2
>sample_1
DRTOWPFPOPOQA
ASDADWEEASDF
ASDADRTYWRW
ASDASDASDASDD
I got try the following perl script. Unfortunately, it can't give my desired output result... (7 Replies)
Hi all,
i have a task to do with Python and because i'm a beginner on it i would like your help on this.
Create a python script that:
Every hour collect the Temperature (e.g. 29C) and Current Condition (e.g. Clear) from this website wunderground.com/global/stations/54511.html
Create a CSV... (0 Replies)
I am trying to move files which donot have same filename using
find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS" -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print
but i am getting all filenames including the ones with duplicate names.Please help me to sort... (5 Replies)
i run command that return this result,example :
gigabitethernet2/2/4:NotPresent, gigabitethernet2/1/17:UP, gigabitethernet2/1/10:UP, gigabitethernet2/1/5:UP,
gigabitethernet2/1/9:UP, gigabitethernet2/1/36:DOWN, gigabitethernet2/1/33:DOWN, gigabitethernet2/1/8:UP,... (19 Replies)
Hello Unix gurus,
I have a file with this format (example values):
label1 1 0
label2 1 0
label3 0.4 0.6
label4 0.5 0.5
label5 0.1 0.9
label6 0.9 0.1
in which:
column 1 is a row label
column 2 and 3 are values
I would like to do a simple operation on this table and get the... (8 Replies)
i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}'
INPUT
1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)
Discussion started by: mirwasim
11 Replies
LEARN ABOUT ULTRIX
klist
klist(8krb)klist(8krb)Name
klist - lists currently held Kerberos tickets
Syntax
/usr/bin/klist [ -s | -t ] [ -file [filename] ] [ -srvtab ]
Arguments
filename The name of the Kerberos ticket file.
Description
The command allows you to print the name of the ticket file, the identity of the principal requesting the tickets (as listed in the ticket
file), and the principal names of all the Kerberos tickets currently held by the user (along with the issue and expiration times for each
authenticator). Principal names are listed in the form:
name.instance@realm
The period (.) is omitted if the instance is null, and the at sign (@) is omitted if the realm is null.
The command also enables you to print the entries in the file. If the -srvtab option is selected, will print the service name, instance
name, realm name, and key version of all services listed in the file.
Options-s Suppresses the printing of the issue and expiration times, the name of the ticket file, or the identity of the principal.
-t Checks for the existence of an unexpired ticket-granting-ticket in the ticket file. If one is present, exits with status of zero(0). Otherwise, it exits with status 1. No output is generated when this option is specified.
-file Causes the following argument to be used as the ticket file. Otherwise, the file is used, where is the user ID of the process.
-srvtab
Indicates that data should be printed. If the -file switch is not used, the data is read from the default file,
Restrictions
User-level authentication is not supported. However, by naming the file with the option, you can look at the tickets generated by
Files
Default file
To get the name of the local realm
The default ticket file
The file containing tickets generated by
See Alsokinit(8krb), kdestroy(8krb)klist(8krb)