With the above code, the string would be replaced but the alignment would not be preserverd. What I require is suppose column 1 is 45 chars and col 2 starts from 46th chars, even after substitution of the string the col 2 should start from 46th char only.
hello all
Script and example of file
#!/bin/sh
#sh gdata.sh /users/testsuite/db/appl/
DATE=`date '+20%y-%m-%d'`
echo $DATE
for i in ${1}/$DATE/* ; do
find $i -name daily -prune -o -name run.log -print -exec grep -c ! {} \; done > test.log.
The test.log contains output like this ... (9 Replies)
Hi,
I have a file which contains more than 1 lakh records like following:
a. name, id, city, state, country, phone (Expected I/P file format)
name, id, city,, state, country, phone (Current I/P file format )
I want to achieve following tasks,
a, Remove the extra comma in the... (1 Reply)
hi ,
i need to format the output which is availble in a file
file output is
Following are the Process_Scheduler Domains running in the server Ram-pc
VPORCL
Following are the Application Server domains running in the server Ram-pc
VPORCL01
VPORCL02
these value VPORCL,VPORCL01...... (5 Replies)
Hi,
I am trying to put a script together that allows for a command to be executed and then the output goes to a .html file. I am running the script on HPUX.
I run:
/var/fl/user/lmutil lmstat -a -c license_lic.dat > /web/results.html
This saves the command to a .html file but the text is... (1 Reply)
I have a file which has following contents
usmtnz-dinfsi19
62
61
18400
18800
99.7
usmtnz-dinfsi19
62
61
18400
18800
99.7
i want the o/p to be like
date (7 Replies)
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
hi
i need some help over here.. please help
i have a log file as per below
---------------------------------------------------------------------------------------------------------
JOB START DATE : 20110510204513
JOB ID : us2cap3ds9... (6 Replies)
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Hi,
I need help in printing data in below format from file extensions with .dml, i have listed details below
file name is test_temp.dml, location in /home/users/test01/test_temp.dml
file content:
sample_type=
record
decimal(",") test_type;
date("DD-MM-YYYY")(",") test_date... (2 Replies)
Discussion started by: AAHinka
2 Replies
LEARN ABOUT DEBIAN
authen::simple::kerberos
Authen::Simple::Kerberos(3pm) User Contributed Perl Documentation Authen::Simple::Kerberos(3pm)NAME
Authen::Simple::Kerberos - Simple Kerberos authentication
SYNOPSIS
use Authen::Simple::Kerberos;
my $kerberos = Authen::Simple::Kerberos->new(
realm => 'REALM.COMPANY.COM'
);
if ( $kerberos->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::Kerberos
PerlSetVar AuthenSimpleKerberos_realm "REALM.COMPANY.COM"
<Location /protected>
PerlAuthenHandler Authen::Simple::Kerberos
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
Kerberos authentication.
METHODS
* new
This method takes a hash of parameters. The following options are valid:
* realm Kerberos realm.
realm => 'REALM.COMPANY.COM'
* log Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::Kerberos')
* authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple.
Authen::Krb5::Simple.
AUTHOR
Christian Hansen "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.8 2008-03-01 Authen::Simple::Kerberos(3pm)