Search Results

Search: Posts Made By: ramsavi
Forum: Red Hat 10-16-2013
986
Posted By ramsavi
Deleting Oracle generated logfiles
Hi all,

how to write shell script to delete the logfiles generated by an oracle application one in every 24 hrs.

Can any one please help.

Thanks in advance
4,613
Posted By ramsavi
C/C++ code of cut command
hi all,

can any one tell me c/c++ code for cut command of shell

Thanks
Forum: Red Hat 08-13-2013
2,065
Posted By ramsavi
Hi, i used the previous script to compare to...
Hi,
i used the previous script to compare to the values returned by the query with the values in the csv file.like this

!/bin/bash
hdr=1
while IFS=',' read -r f1 f2 f3 f4
do if [ "$hdr"...
Forum: Red Hat 08-08-2013
2,065
Posted By ramsavi
Reading csv and executing queries
hi all,

i have a csv file in which some queries are there and through a shell script
i am reading and trying to excute them but it is not working properly

my csv file is like this

...
1,108
Posted By ramsavi
Problem in inserting values of variable of shell
hi all,

i have one shell script like this

#!/bin/bash -xv
ENV_NAME=`cat $IB_HOME_DIR/cfg/ibProfile.sh | grep "RDM_CONN" | cut -f 2 -d "@"`
CURRENT_DIR=`pwd`;
string=$IB_HOME_DIR...
1,216
Posted By ramsavi
How to get only certain column?
Hi all,

I have an file like this,

VERSION = 2
SWI_ID = Ericsson3GSGSN
FILE_SEQ_NBR = 3
TOTAL_RECS = 4143
FIRST_DTTM = 2012-09-20 22:35:48
LAST_DTTM = 2012-09-20 23:47:19
ORIG_FILE_NAME =...
Forum: Red Hat 06-17-2013
1,130
Posted By ramsavi
the another input file is similar to the 1st...
the another input file is similar to the 1st input file which i have shown
only last_dttm is different . i have to compare these file using a shell script
and echo that both the files are similar.
Forum: Red Hat 06-17-2013
1,130
Posted By ramsavi
the file which i have to compare is like this ...
the file which i have to compare is like this

VERSION = 2
SWI_ID = Ericsson3GSGSN
FILE_SEQ_NBR = 695
TOTAL_RECS = 233
FIRST_DTTM = 2008-07-21 16:42:12
LAST_DTTM = 2008-07-21 17:15:58...
Forum: Red Hat 06-17-2013
1,130
Posted By ramsavi
How to compare file leaving certain filelds?
How to compare two files leaving certain fields, using diff command the
entire file is being compared.

Can any one please help.
875
Posted By ramsavi
i have used this script #!/bin/bash -xv ...
i have used this script

#!/bin/bash -xv
for f in `ls -lrth XFR*|awk '{print $NF}'`
do
file=`echo $f|awk -F"_" '{print $1}'` # store filename without _[0-9] numbers
a=`echo $f|awk -F"_" '{print...
875
Posted By ramsavi
Problem in awk
how to rename files like

XFRRT_20130606203918_2496622_02.IDR

to

XFRRT_0001.IDR

also if there are a number of files and all we have to replace with

XFRRT_0002.IDR
XFRRT_0003.IDR...
1,024
Posted By ramsavi
it is copying both the file to their location...
it is copying both the file to their location when i am running the script ./program.sh 1 but what i need is that if i run the scipt like
./program.sh 1
then only the file with tid 1 should be...
1,024
Posted By ramsavi
no its not a home work , i am new to shell script...
no its not a home work , i am new to shell script so often stuck in simple things
1,024
Posted By ramsavi
i have to write a shell script in which from a...
i have to write a shell script in which from a file as i showed above
i on the basis of command line that is whether it is 1 or 2
i have to copy the file to its corresponding file path

so i...
1,024
Posted By ramsavi
Problem in awk
i have a file like this

id file path
1 abc as/input/awg
2 cdv df/output/awd

if on command line i have 1 then i have to copy file abc to path
as/input/awg and similarly if it...
1,168
Posted By ramsavi
How to read a file through shell script?
hi all,
i have to read a file using shell script for example my csv file is
like this
Tid Inputfille Inputfilepath
1 ABC_20141218.idr /export/home/him60t1/input
2 ...
1,481
Posted By ramsavi
i am using it as you said but when and operator...
i am using it as you said but when and operator is used then it is not working

Input=($( sqlplus -s rte/rtet1@him60t1 << EOF
set heading off
select FILE_NAME_DTTM FROM prd_frg_file_jrnl where...
1,481
Posted By ramsavi
Pattern matching problem
if i have to do pattern match for file name with digit alphanumeric value like this
File_1234.csv
File_12sd45rg.csv

i am using this File_[0-9a-zA-Z]*.csv
and File_[0-9]*.csv for digit pattern...
Forum: Red Hat 05-18-2013
1,924
Posted By ramsavi
i didn't get you , actually i am asking that if...
i didn't get you , actually i am asking that if certain epoch value is given then how can i verify it that it is epoch time
Forum: Red Hat 05-18-2013
1,924
Posted By ramsavi
How to check that a particular value is epoch seconds?
how to verify that the following is epoch time.
that is if i have given some random value like 34600 , how can i know it is
epoch seconds
2,088
Posted By ramsavi
hi, i used the same code when the value of source...
hi, i used the same code when the value of source id = value stored in some array but then it is not giving the result . the code which i used is like this

#!/bin/bash -xv

val_1=$( sqlplus -s...
2,088
Posted By ramsavi
what should i do if my file mask is after three...
what should i do if my file mask is after three lines of source id ie something like this


<Source id="S1">
<Type>Ericsson3GSGSN</Type>
<Operator>0</Operator>
...
2,088
Posted By ramsavi
How to grep with certain condition?
hi all,
i have an xml what i have to do is to search for the source id(s1) and if it matches with that in xml then extract the file mask from the name of the file i.e if the file name is ...
1,078
Posted By ramsavi
shell is bash os - linux
shell is bash
os - linux
1,078
Posted By ramsavi
but i dont know the length of that i.e it can be ...
but i dont know the length of that i.e it can be

File_23_23.csv
or
File_112_156.csv
or
File_11111_55577.csv

or it can be any number.

and other thing
File_12_45.csv is being matched by...
Showing results 1 to 25 of 52

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