Hi,
I have this problem on how to place the cursor in a text editor (for example: pico).
I made this script that would attach comments to a script file then open the script file,
I would like to know how to place the cursor in a specific place,
for example at the end of the comments,
here's part of the script:
Code:
echo " " > $sname
echo " " >> $sname
echo "#=================================================" >> $sname
echo "# $sname" >> $sname
echo "# $author" >> $sname
echo "# $date" >> $sname
echo "#=================================================" >> $sname
pico $sname
#after this, I don't know how to place the cursor
maybe something that could also work for Vi and Emacs
thank you
Last edited by Franklin52; 03-09-2011 at 04:30 AM..
Reason: Please use code tags, thank you
Hello,
I need to search in file2 for
class A : public B
{
and insert right after that the content of file1.
I am a bit lost as to which tools (which bash functions, awk...). I should use. Thanks for some directions here.
Regards (1 Reply)
I have a file that I want to split in 2 (with Bourne shell sh) preferably. The file consists of groups of lines separated by newline. The file can vary in length, so I need to check number of groups of text. Here's an example
====EXAMPLE START====
#fruit banana
#color yellow
#surface smooth... (0 Replies)
If I cat a file
And want to go to the first instance of a particular value - what command would I use?
And then from that point where I jumped to search for another value - but only search from that point forward not before the file?
Thanks~ (2 Replies)
Hello, I am using tcsh on AIX.
I would like to write a script that does the following:
1. given an inode, how do I find exactly the name of the file?
I know I could do this using ls -i | grep <inode>
but it returns: <inode> <filename>. I need some string manipulation or something to... (1 Reply)
I use zentyal for my server admin, which is great but zentyal auto-generates config file on boot and hence overwrites any changes made directly to config files. In order to allow multiple user access to a MS ACCESS database, I need to customise the smb.conf file and add the following line to the... (9 Replies)
i have 2 cursors. i want to assign the value of first cursor(employee_id) to the where condition of cursor c2(please refer the bold statement).
how do i do if i want to assign the value of c1 to where condition of cursor c2?
declare
cursor c1 IS
select employee_id from employee
cursor c2... (1 Reply)
Hello,
I'm trying to create multiple commands using a variable input from another file but am not getting any successful results.
Basically, file1.txt contains multiple lines with single words:
<file1.txt>
yellow
blue
black
white
I want to create multiple echo commands with these... (8 Replies)
hello
i have file with 100k records and each one has certain value that starts at 28th column and certain value that starts at 88th column
e.g. 1st file
<25>1234567 ..... <88> 8573785485
i have aditional file with values which are related to value that starts at 88th column of the... (1 Reply)
Hi,
I have an issue converting decimal places of a particular column, i am using below script to get the output, but the output is not generating in desired format.
awk -F"," 'BEGIN{OFS=","}{if(NR==0)getline;if ($7 != "") {if ($7 > 0) $7=$7/100 ; {printf "%.2f"... (3 Replies)
I am trying to use awk to place the contens of a filename in $1 and $2 followed by the data in the text file. Basically, put the filename within the text file. There are over 1000 files in the directory and as of now each file is saved with a unique name but it is not within the file. Thank you... (10 Replies)
Discussion started by: cmccabe
10 Replies
LEARN ABOUT SUSE
kvno
KVNO(1) General Commands Manual KVNO(1)NAME
kvno - print key version numbers of Kerberos principals
SYNOPSIS
kvno [-q] [-h] [-c ccache] [-e etype] service1 service2 ...
DESCRIPTION
Kvno acquires a service ticket for the specified Kerberos principals and prints out the key version numbers of each.
OPTIONS -c ccache
specifies the name of a credentials cache to use (if not the default)
-e etype
specifies the enctype which will be requested for the session key of all the services named on the command line. This is useful in
certain backward compatibility situations.
-q suppress printing
-h prints a usage statement and exits
-P specifies that the service1 service2 ... arguments are to be treated as services for which credentials should be acquired using
constrained delegation. This option is only valid when used in conjunction with protocol transition.
-S sname
specifies that krb5_sname_to_principal() will be used to build principal names. If this flag is specified, the service1 service2
... arguments are interpreted as hostnames (rather than principal names), and sname is interpreted as the service name.
-U for_user
specifies that protocol transition (S4U2Self) is to be used to acquire a ticket on behalf of for_user. If constrained delegation is
not requested, the service name must match the credentials cache client principal.
ENVIRONMENT
Kvno uses the following environment variable:
KRB5CCNAME Location of the credentials (ticket) cache.
FILES
/tmp/krb5cc_[uid] default location of the credentials cache ([uid] is the decimal UID of the user).
SEE ALSO kinit(1), kdestroy(1), krb5(3)KVNO(1)