Search Results

Search: Posts Made By: mukundranjan
2,820
Posted By mukundranjan
Yum.conf baseurl is not working.
Hi friends,


This is my /etc/yum.conf. I think my basurl and updateurl is not correct. When I am installing something, it is giving error.





My yum.conf file is this : Please help me.
...
7,430
Posted By mukundranjan
How to install bsdpan-* on freeBSD 7.1
Hi Experts,

I have installed freeBSD 7.1.

then I installed perl-5.8.8_1 from Ports, I read somewhere that If I install perl from port then it will automatically install bsdpan. But it did not...
2,532
Posted By mukundranjan
if [ "$#" -gt 0 -a "$1" -gt 0 -a "$1" -lt 100 ] ...
if [ "$#" -gt 0 -a "$1" -gt 0 -a "$1" -lt 100 ]
then
"${TEST_HOME}"/ctrl_extract.ksh $1;
fi
1,821
Posted By mukundranjan
#!/bin/sh if [ $# -ne 1 ]; then ...
#!/bin/sh

if [ $# -ne 1 ]; then
echo "Usage: $0 yourfilename"
exit 127
fi

ls -al $1 | cut -d" " -f1
5,218
Posted By mukundranjan
Mark if you have figured out then plz let me know...
Mark if you have figured out then plz let me know also.

Thanks
Mukund
2,721
Posted By mukundranjan
See your file is and logic is clear, but what...
See your file is and logic is clear, but what output you want from this is not clear, can you write down you output only..
7,260
Posted By mukundranjan
Please come in details..
Please come in details..
4,842
Posted By mukundranjan
This will also work in perl. ...
This will also work in perl.


#!/usr/bin/perl

$DIR1 ="dir_1";
$DIR2 ="dir_2";
$DIR3 ="dir_3";
@dir1 = `ls -1 $DIR1`;
@dir2 = `ls -1 $DIR2`;
@dir3 = `ls -1 $DIR3`;

$maxFile =...
2,155
Posted By mukundranjan
Use this perl code for your solution
#!/usr/bin/perl

open(FILE, "<", "a1.txt" ) || die "Unable to open file a <$!>\n";
while ( <FILE> ) {
chomp;
$fileHash{$_} = $i++;
}
close(FILE);
open(FILE, "<", "a2.txt" ) ||...
6,913
Posted By mukundranjan
Hi, see cursor only require when you have to...
Hi,
see cursor only require when you have to traverse in between the records fetched from Table using select command. yeaa obviously cursor only be defined using select command only because it is...
6,913
Posted By mukundranjan
Hi friend, This is a procedure which open a...
Hi friend,

This is a procedure which open a cursor, using select statement from p_nbsc_res_availTable where users fetch data where Period_start_time is equal to previous date.
Then using this...
7,046
Posted By mukundranjan
Hi, This may help you. 1. open the file...
Hi,

This may help you.

1. open the file with fopen.
2. Read the contents line by line.
3. match the string with your pattern and repace accordingly.
4. Write line in another file.
5. remove...
4,572
Posted By mukundranjan
I think its pretty easy to use sql loader for...
I think its pretty easy to use sql loader for your purpose.
28,903
Posted By mukundranjan
Hi friend, I have written below 2 line of...
Hi friend,

I have written below 2 line of code,
1. create a file with of diffrent value that we will use for testing.
2. Cat that file and check for the second parameter if it is greater than...
5,233
Posted By mukundranjan
Hi sun Guy, How u got 4 slashes only when u...
Hi sun Guy,

How u got 4 slashes only when u type

echo \\\\\\\\\\\\\\ -- 14

it will output \\\\\\\ -- 7
it always give half no of output other half is used as escape..
1
1,382
Posted By mukundranjan
Hi :) , Write an Infinite Loop in Which...
Hi :) ,

Write an Infinite Loop in Which check time whether it is greater than 04 AM then Exist From Script.

While [ 5 ]
do
# PASTE HERE YOUR FILE MONITRING WORK SCRIPT ....
TIME=`date...
7,093
Posted By mukundranjan
Hi, If this can help you !/bin/bash echo...
Hi,
If this can help you

!/bin/bash
echo ' select left(from_unixtime(1154647335),10) "" ;' > time.txt
mysql -u root -p "your_Pwd" < time.txt


it is using from_unixtime function of Mysql...
8,701
Posted By mukundranjan
Hi getdpg If ur format is exactly same then...
Hi getdpg

If ur format is exactly same then run below code. For diffrent file u just change ur file name which is currently logfile

grep fails logfile | cut -d":" -f3 | cut -d"(" -f2 | uniq -c
8,416
Posted By mukundranjan
Hi Friend, I think your problem is not clear...
Hi Friend,
I think your problem is not clear enough to attempt, plz give some example and write in details.
Thanks ...
5,713
Posted By mukundranjan
Hi, Sukumar This is simple solution for your...
Hi, Sukumar
This is simple solution for your problem.

#!/bin/bash

while read var1
do
colf1=` echo $var1 | cut -d";" -f 3,4`
grep $colf1 file2 >> sucessfile1
done < file1
grep -vf...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy