Search Results

Search: Posts Made By: COD
10,026
Posted By COD
Nope, its doesn't. The trailing and preceeding...
Nope, its doesn't. The trailing and preceeding spaces are truncated. But if is set to something like
then the preceeding and trailing spaces can also be taken into account.
10,026
Posted By COD
What about this line: Will it work?
What about this line:


Will it work?
10,026
Posted By COD
read command
I have file which is space filled likE below


Note: here spaces are replaced by |.
When I use read command to read this file all the spaces are truncated only the default space is not removed....
7,839
Posted By COD
Aigles, I want the content of new file to be...
Aigles,
I want the content of new file to be same as original file. What I want is to replace the text (for the line having RT3 content) at position at 2651 by the value being passed by Oracle...
7,839
Posted By COD
Aigles, The problem is not writing or reading...
Aigles,
The problem is not writing or reading the input line which matches the pattern criteria. Some of the lines in the file is greater than 3000 bytes (characters). AWK is unable to read these...
7,839
Posted By COD
I have another problem with this script which is...
I have another problem with this script which is doing what it is suppose to do but now the problem is with AWK which is unable to read input line more than 3000 bytes.

The error I am getting from...
7,839
Posted By COD
It is working fine now, I changed the printf from...
It is working fine now, I changed the printf from printf("exec abc_ert(%s, %s, %s, %s, %s, %s);\n",
$tr , $ap, $ver, $irver, $recdate, $logdate) > sql_file;
to
printf("set serveroutput...
7,839
Posted By COD
aigles, I tried running your version of the...
aigles,

I tried running your version of the script, the sql file is getting proper parameters and sqlplus is getting invoked but I am getting some wired error on the shell.

The above error is...
7,839
Posted By COD
I have tried to use system command but still it...
I have tried to use system command but still it errored. :( Can you show how to call sqlplus from awk?
What i want to achieve is to read specific postions in the line from input file (because those...
7,839
Posted By COD
[B]Unable to invoke sqlplus from AWK[/B]
awk -v new=" " '
substr($0, 17, 3) == "ABC" && substr($0, 52, 8) == "00000000" {
tr=substr($0, 20, 10);
ap=substr($0, 30, 2);
...
7,075
Posted By COD
Thanks for the explanation, I have tested the...
Thanks for the explanation, I have tested the script and there is problem that it replaces the previous string values with spaces and the position is written by the new variable.

This is the...
7,075
Posted By COD
Can you explain the logic as I am new to AWK
Can you explain the logic as I am new to AWK
7,075
Posted By COD
read space filled file and replace text at specific position
Hi I have a spaced filled file having records like below:

What I want is to read line having RT3 at position 17-19 then go to position 2651...
Showing results 1 to 13 of 13

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