Search Results

Search: Posts Made By: chill3chee
12,900
Posted By chill3chee
Hi Chubler_XL, Thank you for the answers. ...
Hi Chubler_XL,

Thank you for the answers.

Thanks,
Chill3chee.
12,900
Posted By chill3chee
Connect direct - SFTP - List of servers that I can connect
Greetings Experts,

I am working for a bank client and have a question on connect-direct and SFTP.

We are using Linux RedHat servers. We use connect-direct to transfer (NDM) files from one...
2,758
Posted By chill3chee
Thank you RudiC and MadeInGermany. That works. ...
Thank you RudiC and MadeInGermany. That works. Just wanted to know that during reading $2 is 0e123456789 but why does awk interpret $2 to 0 i.e., process $2 as scientific notation during ! $2 in...
2,758
Posted By chill3chee
AIX to RHEL migration - awk treating 0e[0-9]+ as 0 instead of string issue
Greetings Experts,
We are migrating from AIX to RHEL Linux. I have created a script to verify and report the NULLs and SPACEs in the key columns and duplicates on key combination of "|" delimited...
1,162
Posted By chill3chee
Excellent Scrutinizer. You saved me :) There...
Excellent Scrutinizer. You saved me :) There was already an existing script written by someone. So, re-used it by modifying the needed ones. Your suggestion worked perfectly. Again, thank you.
1,162
Posted By chill3chee
UNIX/Linux - awk - displaying unxpected ! character when viewed in mail; but not in actual file
Greetings Experts,
I am on AIX using ksh; I am processing the input files and generating a awk_output.txt file using AWK. By reading that awk_output.txt file, I am building a output.html file ...
2,392
Posted By chill3chee
Thank you Ravinder Singh, RudiC, Don Cragun,...
Thank you Ravinder Singh, RudiC, Don Cragun, Bakunin for your inputs. Have used the RudiC's suggestion along with Don's excellent considerations. The error I was facing for
sed "/$line/ s/^/--/g"...
2,392
Posted By chill3chee
Hi RudiC/Ravinder Singh, The file1 specified in...
Hi RudiC/Ravinder Singh,
The file1 specified in the above is sql file generated after applying modifications to the template file. Now file1.txt had to be run in Oracle whose sample contents are ...
2,392
Posted By chill3chee
sed - pattern match - apply substitution
Greetings Experts,
I am on AIX and in process of creating a re-startable script that connects to Oracle and executes the statements. The sample contents of the file1 is
CREATE OR REPLACE VIEW...
3,811
Posted By chill3chee
Thank you Yoda, that did it :)
Thank you Yoda, that did it :)
3,811
Posted By chill3chee
Hi Vgersh99, Thank you for your time. But...
Hi Vgersh99,

Thank you for your time. But the file ${drctry}/${v_timestamp}_sql_primary_log.txt content is empty. Did I miss something here please.. However, I did see the contents in another...
3,811
Posted By chill3chee
UNIX Sqlplus - Capture the sql statement about to run and execution status
Greetings Experts,

I am on AIX using ksh. Created a unix script which generates the CREATE OR REPLACE VIEW ... and GRANT .. statements, which are placed in a single .txt file. Now I need to...
2,575
Posted By chill3chee
solved
That was absolutely brilliant. Thank you RudiC :)
2,575
Posted By chill3chee
Hi MadeInGermany, Thank you for the...
Hi MadeInGermany,

Thank you for the suggestion. Creating one more array to count the combination of $1 OFS $4 OFS $7 and then I need to find a way to go through this algorithm
for (i in a) {...
4,065
Posted By chill3chee
Hi Bhupesh, For the comparison, can you please...
Hi Bhupesh,
For the comparison, can you please check whether the following does meet your need (untested)
awk '
BEGIN {FS = "\n"
OFS = ","
RS = ""
}
{trn=$1;nm=$2;tme=$3;msg=$4;...
2,575
Posted By chill3chee
awk - split data based on the count
Greetings Experts,
I am generating a validation query through awk and facing an issue, which I need to overcome by splitting the data based on the pattern matching count in the value of an array....
4,677
Posted By chill3chee
Learning awk and sed through the valuable posts...
Learning awk and sed through the valuable posts in the forum. Just curious on how to achieve this through sed. Thank you RudiC, request you to please explain the code..
3,785
Posted By chill3chee
ksh - variable to be set to windows path issue
Greetings Experts,
I need to pass a parameter to ksh and the value is windows path eg: sh abc.txt C:\Users\chill3chee\Desktop

No matter I try with \ delimiter, still could not get this exact...
4,677
Posted By chill3chee
sed to remove newline chars based on pattern mis-match
Greetings Experts,
I am in AIX; I have a file generated through awk after processing the input files. Now I need to replace or remove the new-line characters on all lines that doesn't have a ;...
6,096
Posted By chill3chee
I aligned your post to suit my requirement and...
I aligned your post to suit my requirement and works great. As always, awesome and thank you RudiC.
I have a small question here. My script uses 2 input files is facing issues when reading the...
6,096
Posted By chill3chee
awk - Remove duplicates during array build
Greetings Experts,
Issue: Within awk script, remove the duplicate occurrences that are space (1 single space character) separated

Description: I am processing 2 files using awk and during...
1,844
Posted By chill3chee
awk - Multiple files - 1 file with multi-line data
Greetings experts,
Have 2 input files, of which 1 file has 1 record per line; in 2nd file, multiple lines constitute 1 record; Hence declared the RS=";"
Now in the first file which ends with ";"...
19,131
Posted By chill3chee
Hi MadeinGermany, The NR is same for both the ...
Hi MadeinGermany,
The NR is same for both the FS="@"and FS="[@]" However the NF differs in the above cases; as you specified for FS="@"it is treating line feeds as a delimiter. Thanks again
19,131
Posted By chill3chee
Thank You MadeInGermany; The first solution did...
Thank You MadeInGermany; The first solution did work; however the second solution did produce the same output as my post (not able to recognize ; as RS) Can you please explain how [@] different is...
19,131
Posted By chill3chee
awk - Multi-line data to be stored in variable
Greetings Experts,

As part of automating the sql generation, I have the source table name, target table name, join condition stored in a file join_conditions.txt which is a delimited file (I can...
Showing results 1 to 25 of 30

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