Search Results

Search: Posts Made By: lnviyyapu
1,190
Posted By lnviyyapu
how to write a script to add
HI Team,

I have requirement as below:

i have generated two csv files into separate files but that files should be in a single with separate tab in the sheet.

Please help me out ,how to do in...
11,583
Posted By lnviyyapu
pbrun ssh -l servername
Hi,

Can you plz help me in the below command!

what is the pbrun command does with ssh

pbrun ssh -l servername
10,314
Posted By lnviyyapu
Thanks...
Thanks...
10,314
Posted By lnviyyapu
Difference between $0 and basename
Hi,

Could you please help me to know the difference between
$0 and basename in unix how they useful in shell scripting.

Thanks in advance
3,634
Posted By lnviyyapu
thanks...
thanks...
3,634
Posted By lnviyyapu
difference between > and 2>
Hi
could you please tell me, what is the difference between this two
urgently
1,900
Posted By lnviyyapu
scottn :thanks a lot... jlliagre: thanks......
scottn :thanks a lot...

jlliagre: thanks... but i have just written as example
1,900
Posted By lnviyyapu
why Cron behaves different ?
Hi,

i have script called script.ksh

script.ksh
---------
echo "Narayana" >$HOME/script.log
echo "$0" |sed 's/.ksh//' >>$HOME/script.log
My question is:
--------------
when iam...
1,458
Posted By lnviyyapu
thanks.... it helps me lot.....
thanks.... it helps me lot.....
1,458
Posted By lnviyyapu
Problem with crontab entry log
Hi,

Please help me with below scenerio...

i have a shell script.. which should be scheduled in cron and should get the log when executed.

example, script.ksh :

echo "narayana"...
54,023
Posted By lnviyyapu
Create DB table through shell script
Hi,

This might help you.... plz reply
$1=$uid
$2=$pwd
$3=$dbname
echo "create table emp" >> emptab.sql
echo "(" >> emptab.sql
echo "Emp ID varchar2 primary key," >> emptab.sql
echo "Name...
1,301
Posted By lnviyyapu
An Issue with the script which used to remove a file from the current directory.
ls -1 *.txt| while read line
do
rm -f $line
if [ -s $line ] ; then
echo "failed to remove"
else
echo "removed successfully"
fi
done
4,126
Posted By lnviyyapu
Column comparision between two files
while read line2
do
a=`echo $line2 |awk '{print $1}'`
d=`echo $line2 |awk '{print $2}'`
while read line1
do
b=`echo $line1|awk '{print $1}'`
c=`echo $line1|awk '{print $2}'`
if [ $a -eq $b ]...
11,412
Posted By lnviyyapu
How to access variable from one file to another in shell script?
#!/bin/sh
if [ ! -r $ConfigFile -a ! -s $ConfigFile ] ; then
echo " Config file Setup Doesn't Exit...."
exit 11
fi

username=`grep -w "username" $ConfigFile | cut -d"=" -f2`...
18,526
Posted By lnviyyapu
regular expression in ksh
it is the problem with quotes, i think juct change like below and try...

function get_hosttype {
HOSTNAME=`hostname`

if [ "${HOSTNAME}" = "ne1dxdb*" ]
then
export boxname="test"
fi
if [...
1,891
Posted By lnviyyapu
line replacement help need
Hi,

Try this ,

===============================
str=`grep name cfg.txt|awk '{print $3}'`
echo "enter the value for "
read repstr
sed "s/$str/\'$repstr\'/" cfg.txt >temp
5,486
Posted By lnviyyapu
using if and [] expansion
HI,

Please check this code , this may help you,

!#/us/bin/ksh

ls -1 P* >Pfile.lst
ls -1 D* >Dfile.lst
ls -1 R* >Rfile.lst

while read P D R
do
if [ -s "$P" ] then
--
fi
if [ -s ...
Showing results 1 to 17 of 17

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