10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to replace a chain of if-else statement in an old AWK file with values from Db2 table or CSV file. The part of code is below...
if (start_new_rec=="true"){
exclude_user="false";
user=toupper($6);
match(user, "XXXXX.");
if (RSTART ==2 ) {
... (9 Replies)
Discussion started by: asandy1234
9 Replies
2. Shell Programming and Scripting
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies
3. Shell Programming and Scripting
Hi Everyone,
I am currently tasked with some reporting on various Unix based OSes. I have a script deployed that runs and grabs the information I am looking for, and has a bit of logic to output the desired result into a text file.
Example of my text file:
multiUsers=yes... (1 Reply)
Discussion started by: Zaphod_B
1 Replies
4. Shell Programming and Scripting
I have a config file of this format:
Company= Alpha Tech
From Email = AlphaTech@Alphatech.com
Pass = Passowrd
To Email = abc@hotmail.com
Smtp=smtp.live.com:587
I want to read these values from this file and use in a command to send email. I am trying grep but it gives full line. I just... (8 Replies)
Discussion started by: kashif.live
8 Replies
5. Shell Programming and Scripting
Hi,
I have the below values in a text file.
'xx.16397950',
'xx.16397957',
'xx.16397976',
'xx.16473259',
I need to use in the where clause of the sql query in my unix shell script. How to read one by one value.
It should be like this:
select * from <<table name>> where xx in (... (10 Replies)
Discussion started by: venkatesht
10 Replies
6. Shell Programming and Scripting
Hi,
I want to read the variables and the values from the txt file and compare these values with the ones computed by script.
for ex:
say var.txt contains the variable names and their values:
one 1
two 2
three 3
The value of variables "one" "two" and "three" will be computed in the script... (3 Replies)
Discussion started by: bhushana
3 Replies
7. Shell Programming and Scripting
I have read another post about this issue and am wondering how to adapt it
to my own, much simpler, issue.
I have a file of user IDs like so:
333333
321321
546465
...etc
I need to take each number and use it to print records wherein the 5th
field matches the user ID pulled from the... (2 Replies)
Discussion started by: Bubnoff
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I am having some trouble reading into an array. Basically, I am trying to grep for a pattern and extract it's value and store the same into an array. For eg., if my input is:
<L:RECORD>name=faisel farooq,age=21,
company=TCS,project=BT</L:RECORD>
<L:RECORD>name=abc... (1 Reply)
Discussion started by: faiz1985
1 Replies
9. Shell Programming and Scripting
hi,
Can some one help me how to retrieve column values row by row
My requirement is like below :
I have a text file having comma seperated values of these records .
OName OType SrcDB Sschema targetdb TSchema Load Dataype processY/N
aa Table a e i m Y db2 y
aa index b c d e N sql N
... (4 Replies)
Discussion started by: sailaja_80
4 Replies
10. Shell Programming and Scripting
Hi ,
I have a file with the following content
I need the read the year and reporting from this file and store them in variables.
I understand that we can read the file delimited by'=' but not sure how to extract the values correctly.
Thanks in advance
Regards (3 Replies)
Discussion started by: w020637
3 Replies