Search Results

Search: Posts Made By: Ravindra Swan
2,001
Posted By Ravindra Swan
Trouble calculating difference in number of days
Hi all,

I have a requirement to calculate the difference of number of days of time stamp of a file and system date and if the difference is greater than 15 days it should prompt as previous month...
2,501
Posted By Ravindra Swan
Thanks RavinderSingh13, Yes you got my...
Thanks RavinderSingh13,

Yes you got my requirement mostly but the content of first .txt file should be appended to another at nth position.
This nth position can vary.

With the solution you...
2,501
Posted By Ravindra Swan
Trouble using awk command
Hi,

I have 2 .txt pads containing data.
I need a script which reads content of one .txt file, performs some operations and calculates a number which is stored in a variable.
Now , all the...
2,295
Posted By Ravindra Swan
Hi derekludwig, Thanks for reply, My...
Hi derekludwig,

Thanks for reply,

My expectation is something else.

Alternate display of input from command editor and each line from text pad.
If 1,2,3 are the 3 inputs supplied, then...
2,295
Posted By Ravindra Swan
Issue in using read keyword twice
Hi,

I have a situation where i need to read line by line from a text pad and with each line , i need to take inputs from command line and do some process.
Using below code i am not able to use...
2,520
Posted By Ravindra Swan
Still same issue
Then how come for the first time it identified correct variable and did the functionality required.I tried changing the variable names and executing the script but same result:(.:(
2,520
Posted By Ravindra Swan
problem
Hi,

I work on Ab-initio ETL tool which is based on Unix. I made a small script which has two loop's one with in another. All the functionality is working for the first line of outer loop but when...
1,957
Posted By Ravindra Swan
Trouble with awk command
Hi,

I need to read a string with ; separated using loop one filed by one field and perform some operation. Can you please check and let me know how to print command parameterised.

...
1,584
Posted By Ravindra Swan
Trouble using awk and sed commands
Hi i have a control file which i need to read. It is ',' separated. the 3rd parameter will be ';' separated.
I have 2 files:
/home/orig.txt
/home/join.txt
I need a O/P file name based on...
4,521
Posted By Ravindra Swan
Error..
Hi when i tried

cp $a $b

it is giving below error:

DML_FILE_NAME_ORIG1=$INF_COMRCLDATAMART_DML/ft_arnge_cred_risk_mtgt_fact.dml
cp: cannot stat...
4,521
Posted By Ravindra Swan
I mean a.ksh a=/ai/a.txt b=/ai/b.txt ...
I mean

a.ksh
a=/ai/a.txt
b=/ai/b.txt
cp $a $b
echo `cat $b`
-----------------
cat /ai/a.txt
and
cat /ai/b.txt both should give the same result set.
4,521
Posted By Ravindra Swan
Its not working
Thanks for the reply....

I need to dump into variable only because in further steps i need to pass variable to ETL-graph and then it will execute using this.

Environmental issues are not there...
4,521
Posted By Ravindra Swan
Trouble reading content of file from a variable
Hi ,

i have a parameter which has path of a file. Now i need to have another parameter with the content of that file. I tried the belwo script , can any one please help.
I dont want to use cat...
1,130
Posted By Ravindra Swan
Help needed in UNIX scripting
Hi,

I have 2 variables which is having like the below data

a=x.1 y.2 z.3 m.4
b=No (zero) rows read (0)~ No (zero) rows read (0)~ Complete: 273894 row(s)~ Complete: 729002 row(s)~


I...
5,535
Posted By Ravindra Swan
Pass parameters to a function and running functions in parallel
Hi ,

I have a script which is using a text file as I/P.
I want a code where it reads n lines from this file and pass the parameters to a function and now this script should run in such a way...
2,804
Posted By Ravindra Swan
Few questions: I need table_name[c] value in...
Few questions:
I need table_name[c] value in another variable. for ex:a
SO, if i echo $a , it should give table_name1
if i echo $table_name1 it should give the first table name in the i/p file.
...
2,804
Posted By Ravindra Swan
Trouble with variable assignment and reading in shell scripting
Hi,
I have an inputfile with some table names in it.
For ex:
t_arnge
t_profl
t_fac

I need a script which reads the line one by one and need to assign to some dynamic variable. If to explain...
2,550
Posted By Ravindra Swan
ksh script modification
Hi
I have some list of files in a .dat
i need to read them line by line and assing them to variables.
For ex: list of files are some,some1
i need two variables g1 as some and g2 as some1.
and...
1,925
Posted By Ravindra Swan
Help pls...Rename .dat files
Hi,

I have some .dat files in some directories , i want them to be moved to another directory by changing file names.

for ex:

cat > /ai/rcmid/feb_files/temp/temp.txt
aaa.dat
bbb.dat

rm...
2,272
Posted By Ravindra Swan
same error
Again i am getting same error
month.ksh: line 6: ls-l: command not found

---------- Post updated at 03:35 PM ---------- Previous update was at 03:32 PM ----------

Thanks got it
2,272
Posted By Ravindra Swan
same error
No It is not working same error.

month.ksh: line 6: ll: command not found
2,272
Posted By Ravindra Swan
Scripting question
Hi
I am trying to write a small script which takes one by one file name from a txt file and do a 'll' and need to check if equal to the given month, otherwise it should return back the file name....
49,765
Posted By Ravindra Swan
Zip file
Hey pls find zip file
I have zipped main document only , if this post got published then , i'll send u the commands whcih needed to be run

---------- Post updated at 01:19 PM ---------- Previous...
49,765
Posted By Ravindra Swan
Zip file
Hey pls find zip file
I have zipped main document only , if this post got published then , i'll send u the commands whcih needed to be run
49,765
Posted By Ravindra Swan
Clarification
The relation ship b/w middle lines can be achieved by +/-5000 logic.
I am explaining this for u in a simpler way. Assume evry thing i am mentioning below just suppose the numbers but the logic is...
Showing results 1 to 25 of 50

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