Search Results

Search: Posts Made By: varun2327
2,309
Posted By varun2327
Here is the code #!/bin/ksh while IFS=...
Here is the code

#!/bin/ksh

while IFS= read -r line
do


export create_txt="CREATE TABLE";
export END_TXT=");";
export OUTPUT_TXT=output.txt;
rm -f output.txt;
while read line
do
...
2,309
Posted By varun2327
I used the below loop condition WHILE...
I used the below loop condition

WHILE IFS=read -r line
do

#Complete Code for one instance as explained above

done < input.txt

When I executed the above, it kept on running by overwriting...
2,309
Posted By varun2327
Help with loop in ksh script
Hi, I am new to UNIX. I am working on a script where it takes the input and produces a desired output and it works fine for one instance.

Input(One Instance):
CREATE TABLE TAB1
(
COL1,
COL2...
2,379
Posted By varun2327
Hello Disedorgue, In the similar case above, I...
Hello Disedorgue,
In the similar case above, I need to write the output differently if I find a combination of columns. If the input table has a combination of columns(foo & boo), then the output...
2,379
Posted By varun2327
Thank you so much disedorgue.
Thank you so much disedorgue.
2,379
Posted By varun2327
Hello Disedorgue, I am getting the following...
Hello Disedorgue,
I am getting the following error while I run the above statements

awk: cmd. line:2: switch ($0) {
awk: cmd. line:2: ^ syntax error
awk: cmd. line:4: case...
2,379
Posted By varun2327
Hello Disedorgue, I tried the similar approach...
Hello Disedorgue, I tried the similar approach for one other script and couldn't able to get the desired result. Could you please check this.

Input:
CREATE TABLE TBL_NM
(

COL1 ...
2,379
Posted By varun2327
Hello disedorgue, one last question... For...
Hello disedorgue, one last question...

For the same input, if I want multiple comments one with (COL1, COL2) and also the same comment for individual columns, how can I do it.

For example, for...
2,379
Posted By varun2327
Thank you so much. You rock!!
Thank you so much. You rock!!
2,379
Posted By varun2327
Thank you disedorgue. It worked the way I wanted....
Thank you disedorgue. It worked the way I wanted.

But one last question. How can I pass a variable for DB_NM instead of hard coding every time?

I tried to set something like this before awk and...
2,379
Posted By varun2327
Don, Please find my answers here, I could have...
Don,
Please find my answers here, I could have been more specific earlier. I am working on automating few scripts and as part of that, I need to have this.

1. No there could be less or more...
2,379
Posted By varun2327
Help with formatting
Hi, I am new to UNIX and need your help in formatting the below input command to the desire output

Input:
CREATE UNIQUE INDEX XPKTABLE1
(
COL1,
...
Showing results 1 to 12 of 12

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