Search Results

Search: Posts Made By: kalpeer
16,223
Posted By kalpeer
i am using Centos 5 and installed the rpm...
i am using Centos 5 and installed the rpm dialog-1.0.20051107-1.2.2

---------- Post updated at 01:25 AM ---------- Previous update was at 12:51 AM ----------

After long search i got how to use...
3,275
Posted By kalpeer
It should be if
It should be if
2,160
Posted By kalpeer
Under /var/www/html create a soft link to your...
Under /var/www/html create a soft link to your directory /home/user/test/
1,238
Posted By kalpeer
Hi, Instead of try the below...
Hi,

Instead of

try the below statement.
Thanks,
Kalai
2,495
Posted By kalpeer
Thanks Guru, Could you please explain this...
Thanks Guru,

Could you please explain this pattern sed 's/\(.*_\)\(....\)\(..\)\(..\)/\1\4\3\2/'` , It will be very helpful.
2,355
Posted By kalpeer
Just modified your command little, ...
Just modified your command little,



Output:


Whats your platform ? uname -a
2,355
Posted By kalpeer
When i execute your command i am getting the...
When i execute your command i am getting the below output.

Its not mandatory to have file for awk.

Is this is the expected output ?

Thanks,
Kalai
3,357
Posted By kalpeer
if you want to search for different date u can...
if you want to search for different date u can modify the below items

Step 1:
Comment the below line and the new line
#da_date="`date +%d`"
da_date="2" # provide the date u need to search
Step...
28,205
Posted By kalpeer
try with "sar" utility sar - Collect,...
try with "sar" utility

sar - Collect, report, or save system activity information.
883
Posted By kalpeer
Please try with below script #! /bin/bash...
Please try with below script


#! /bin/bash
while read line
do
in1=`echo $line | awk '{print $1}'`
in2=`echo $line | awk '{print $2}'`
ou1=`grep $in1 fileB | grep $in2`
if [ -z "$ou1" ];then...
3,357
Posted By kalpeer
i done a little modification to my script and...
i done a little modification to my script and display the last two days and today report

#! /bin/bash

#retrieve current date and month
da_date="`date +%d`"
#da_date="2"
da_month=`date "+%m"`...
1,605
Posted By kalpeer
below script will ignore # and blank space ...
below script will ignore # and blank space


#! /bin/bash
val=`awk '$0 !~ /^[#]|[\ ]/{
i=0
printf("%s ",$0)
}' inp4`
./te5 $val
echo $val

if you want add any other pattern apart from #...
3,357
Posted By kalpeer
below script will provide you the expected...
below script will provide you the expected output. It will work only for the same year.


#! /bin/bash

da_date="`date +%d`"
da_month=`date "+%m"`

prev_date=0
prev_mon=0
da_year=`date...
1,605
Posted By kalpeer
try the below scripts. it works as you expected...
try the below scripts. it works as you expected unless there is a space.

te4:

#! /bin/bash
val=`awk '{
i=0
printf("%s ",$i)
}' inp4`
./te5 $val

te5: prints the argument received

#!...
2,113
Posted By kalpeer
You can add this condition in your default...
You can add this condition in your default profile file(~/.profile or ~/.kshrc or ~/.cshrc)
Since when the user login profile gets executed.
1,266
Posted By kalpeer
hi, Even I have tried to automate the ssh...
hi,

Even I have tried to automate the ssh login with password and am not able to automate it.
one simple thing is you can automate the ssh login using the keys.
below link talks about it...
3,375
Posted By kalpeer
Check whether the shell is same. one thing you...
Check whether the shell is same.
one thing you can try is instead of "export" try with "set"

---------- Post updated at 03:44 AM ---------- Previous update was at 03:44 AM ----------

Check...
1,266
Posted By kalpeer
try the below option. it might help you. Before...
try the below option. it might help you.
Before invoke the stop_ca_devp script update the port variable
port=xxxx
./stop_ca_devp <<__EOF__
$port
__EOF__


Thanks,
Kalai

How to use code...
2,786
Posted By kalpeer
try %s/ /\\r/g
try
%s/ /\\r/g
6,111
Posted By kalpeer
try this touch /tmp/test.$$ while read...
try this

touch /tmp/test.$$
while read line
do
check=`echo $line | tr -dc [A-Z]`
if [ ! -z "$check" ];then
echo "$line" | sed 's/$/]Foo/' >> /tmp/test.$$
else
echo "$line" >> /tmp/test.$$...
6,111
Posted By kalpeer
echo "LINE" | sed 's/$/]FOO/' This appends...
echo "LINE" | sed 's/$/]FOO/'

This appends the "]FOO" to end of the line.

Thanks,
Kalai
14,935
Posted By kalpeer
This also works grep -f fileB fileA | awk ' $1...
This also works
grep -f fileB fileA | awk ' $1 >= 3' > fileC
2,194
Posted By kalpeer
one simple thing is before reading the file,...
one simple thing is before reading the file, replace the variable in the file.
sed "s:\$JAVA_TOP:$JAVA_TOP:" DATA.csv > /tmp/DATA.csv

read the value from "/tmp/DATA.csv" instead of "DATA.csv"
2,272
Posted By kalpeer
Try this #! /bin/bash file1=`ls...
Try this

#! /bin/bash
file1=`ls /tmp/masterCSF* | head -1`
file2=`ls /tmp/indexCSF* | head -1`
if [ -z "$file1" ]; then
echo " Only indexCSF file is available"
exit 1
fi
val1=`echo...
Forum: Red Hat 08-09-2011
4,489
Posted By kalpeer
How to compile httpd using gcc in RHEL?
Hi All,

I am trying to compile httpd2.2.19 in RHEL5.5 using gcc version 4.1.2. This is first time I am trying to compile httpd in RHEL.

I ran configure with below option

...
Showing results 1 to 25 of 25

 

Featured Tech Videos

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