Search Results

Search: Posts Made By: LAKSHMI NARAYAN
1,667
Posted By LAKSHMI NARAYAN
Need Help
Hi

Please help in writing shell script for removing the 60 days older files. and if the files are not 60 days older then they should be zipped and zipped files are to be move to the seperate...
1,392
Posted By LAKSHMI NARAYAN
need help
Script executing from on all unix machines under some directory cron and loging execution results in var/mail
1,485
Posted By LAKSHMI NARAYAN
thanks
i didn't understood the code

can u explain in detail

thanks
1,485
Posted By LAKSHMI NARAYAN
how to subsitute
hi to
all

i need to subsitute to_date('','MM/DD/yyyy')
this with narayana

sed 's/to_date('','MM/DD/yyyy')/narayana/g' file
24,421
Posted By LAKSHMI NARAYAN
if u want to run a1.ksh script from b1.ksh script...
if u want to run a1.ksh script from b1.ksh script then do as follows

in the b1.ksh script

sh a1.ksh

and save the file and run the b1.ksh
5,988
Posted By LAKSHMI NARAYAN
x=`grep -n "start of log" text | cut -d ":" -f1` ...
x=`grep -n "start of log" text | cut -d ":" -f1`
y=`grep -n "end of log" text | cut -d ":" -f1`
a=`echo ${x} + 1 | bc`
b=`echo ${y} -1 | bc`
echo $x $y $a $b
sed -ne "${a},${b}p" text
6,218
Posted By LAKSHMI NARAYAN
try this
idval=$1
filename=$2
x=`grep -n "$idval" $filename | cut -d ":" -f1`
echo $x
start=`echo ${x}-2 | bc`
end=`echo ${x}+1 | bc`
echo $st
echo $to
sed -ne "${start},${end}p" $filename
8,820
Posted By LAKSHMI NARAYAN
try like this
echo "[1] mgmt.mib-2.bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLastError.163.121.170.20 (OctetString): 0x04 00" | awk '{ print $2 }' f1_17Dec2007_10* | sed 's/[a-z]*//g' | sed 's/.-2..PT.PE.PLE.//'
8,820
Posted By LAKSHMI NARAYAN
try this
awk '{ print $2 }' filename | sed 's/[a-z]*//g' | sed 's/.-2..PT.PE.PLE.//'
2,212
Posted By LAKSHMI NARAYAN
hi
the line in your script are commented, so no use of that lines in your script
17,694
Posted By LAKSHMI NARAYAN
how to use cd command in shell script
i didn't get u
can u explain in detail
17,694
Posted By LAKSHMI NARAYAN
how to use cd command in shell script
hi
buddies

i am not getting this

when am using the cd command it is not working
for example

makefile.ksh
---------------
#!/bin/ksh
dirpath=$1
cd dirpath

my intension is to give...
65,593
Posted By LAKSHMI NARAYAN
try this
dos2unix -437 -ascii filename > file
2,603
Posted By LAKSHMI NARAYAN
u can try like this
awk ' { print substr($0,4,1) }' filename
41,996
Posted By LAKSHMI NARAYAN
try like this
ls -1 *.zip > filelist
for filename in `cat filelist`
do
unzip $filename > temp
mv temp newdir/$filename
done
6,071
Posted By LAKSHMI NARAYAN
hey i tried this script
the output is giving like this

PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE
PROCEED THE LINE...
3,434
Posted By LAKSHMI NARAYAN
hi
i guess

u have to give semi colan after the braces and then follows


if [ ] ; then
2,353
Posted By LAKSHMI NARAYAN
plz help in writing awk script
hi buddies

pls help in this matter

i have file like this input file
--------------------------
(PARTITION PARTITION_1 VALUES LESS THAN (101, 16383 ) TABLESPACE PART_1
,PARTITION PARTITION_2...
1,254
Posted By LAKSHMI NARAYAN
i need some help in awk script
hi
buddies

i want to write a new line after the first occurenc of the line and remove the other occurences.

file.txt
--------
To survive as a DBA it's essential that you strive to become
...
2,565
Posted By LAKSHMI NARAYAN
how to write
hi
buddies

i want to write a awk script

for the file like this:

Aaj rootha huwa ek dost bahut yaad aaya,
Achha guzra huwa kuch waqt bahut yaad aaya,
Meri aankhon ke har ek ashq pe rone...
3,323
Posted By LAKSHMI NARAYAN
hey i am not getting this
awk '{if($0 ~ / ENDING /) printf("%s\n%s\n",$0,$0); else print $0;}' filename \

| awk -f interesting.awk



interesting.awk

BEGIN{i=0; flag=1; tag="" ;num=0;}

{if($0 ~ / ENDING /)

{...
3,224
Posted By LAKSHMI NARAYAN
<XMLFORMAT> ...
<XMLFORMAT>
<customernumberR11>9</customernumberR11>
<newnumberR11>30</newnumberR11>
<customerdetailR11>

</XMLFORMT>
<XMLFORMAT>
<customernumberR11>20</customernumberR11>...
3,224
Posted By LAKSHMI NARAYAN
how to handle variables in sed
while read line
do
str1=`grep 'customernumberR11' file1 | cut -c 20-21`
str2=`grep 'newnumberR11' file1 | cut -c 15-16`
if [ "$str1" -ne "$str2" ] ; then
sed -e "s/newnumberR11/...
3,323
Posted By LAKSHMI NARAYAN
help in writing awk script, plz urgent
I have a file like this I have to
I have input file this , I want to give the out put in the below

input file
(NARAYANA 1 ENDING AT (100, 16383)
,NARAYANA 2 ENDING AT (100, 32766)...
3,323
Posted By LAKSHMI NARAYAN
help in writing awk script, plz urgent
I have a file like this I have to
I have input file this , I want to give the out put in the below

input file
(NARAYANA 1 ENDING AT (100, 16383)
,NARAYANA 2 ENDING AT (100, 32766)...
Showing results 1 to 25 of 38

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