Search Results

Search: Posts Made By: kanu_pathak
5,664
Posted By kanu_pathak
thanks for the reply Johnson, you piece of...
thanks for the reply Johnson,

you piece of change is also not producing the desired o/p.:(

Any other suggestion is most welcome.


regards
Kanu
5,664
Posted By kanu_pathak
AWK record length fix
Hi Friends,

Need some help in AWK.

Working on AIX 5

Have been trying the following functionality to make the record length fixed:

if( length(record) < 300 )
{
printf("%-300s\n",...
20,940
Posted By kanu_pathak
edited
edited
20,940
Posted By kanu_pathak
%u is not working ... giving something like...
%u is not working ... giving something like 1897600 as result.

thanks again!!
and thanks in advance :)
20,940
Posted By kanu_pathak
OK! thanks budd! how to do it with a format...
OK! thanks budd! how to do it with a format specifier??
20,940
Posted By kanu_pathak
means value of C should come around to be 1...
means value of C should come around to be 1 (absolute value)
20,940
Posted By kanu_pathak
%d option is not working
My code:
#!/bin/awk -f
BEGIN {

# Enter the numbers
a = 2;
b = 3;
c = a - b;

printf ("The first number is%d\n",a);
printf ("The...
20,940
Posted By kanu_pathak
awk printf formatting using string format specifier.
Hi all,

My simple AWK code does C = A - B
If C can be a negative number, how awk printf formating handles it using string format specifier.

Thanks in advance
Kanu
:confused:
2,300
Posted By kanu_pathak
a better view of the problem
I want to change the record:

TAB000025 123338372221004 06000007727RUP 000000080714 862256382 0110HAL OFFICE SkpajiONSHOUSTON TXPCO123456 80021 ...
2,300
Posted By kanu_pathak
want to change the value
Thanks Frank, for giving me info about substr().
But what I want here is to copy the value into the specified field, while your command is printing it on screen.

what about:
awk '{if (...
2,300
Posted By kanu_pathak
Making changes in the fields of a record
:confused:
Hi Friends,

In the record below i have to make changes in the fields by putting the values stored in the temporary variables, x, y, z, p, q, r:

2) In the TBT record store the values...
7,143
Posted By kanu_pathak
Dan, dont know why the 'grep -v' not working but...
Dan, dont know why the 'grep -v' not working but your 'sed' option is working [
7,143
Posted By kanu_pathak
:b:well both are doing good. but in perl just...
:b:well both are doing good.
but in perl just wanted to move the records and not print them...
anyways some research from my side is good for me also ....:b:
7,143
Posted By kanu_pathak
grep is not doing anything. new_file is still...
grep is not doing anything.
new_file is still with the same records.
anything with the sed?
7,143
Posted By kanu_pathak
file type: ...
file type:

NMT000010000100001ENVL,CSP,28#,9X12,KFT,1C 00001
NA20000105500000003081547100100008000000000024.19 000000000000001DZ ...
7,143
Posted By kanu_pathak
Please find the attached file in text format. ...
Please find the attached file in text format.

say if i have to remove the NA2 record and NPD record. (this is a portion of file which contains thousands of records). i believe sed pattern...
7,143
Posted By kanu_pathak
How to remove a particular record from a file?
Please tell me the command(s) to remove a particular record from the file and placing the rest of the record in a seperate file.
Forum: Programming 07-15-2008
8,564
Posted By kanu_pathak
:confused:how do we pass the parameters in the...
:confused:how do we pass the parameters in the .exe programs???
Forum: Programming 07-15-2008
8,564
Posted By kanu_pathak
Thanks Swami! :b: Well this means that the .exe...
Thanks Swami! :b:
Well this means that the .exe are the already compiled files which we can run without having C++ source codes.
Am I right .... ?
Forum: Programming 07-15-2008
8,564
Posted By kanu_pathak
How . exe files work
:confused:Hi

I work on a production server. We have some .exe files in our system, the source of these files are C++ programs that are stored in the development server. How these .exe work. Could...
32,356
Posted By kanu_pathak
I am using ksh. Flavour is AIX, version 4.
I am using ksh.
Flavour is AIX, version 4.
32,356
Posted By kanu_pathak
This is what I got : #echo $LANG En_US ...
This is what I got :

#echo $LANG
En_US

Helpful?
32,356
Posted By kanu_pathak
I dont know why, but I always wanted to get this...
I dont know why, but I always wanted to get this answer.
I always doubted this. I think at the place of 'space' some dump characters are coming.
How can I check the encoding character set of the...
32,356
Posted By kanu_pathak
Thanks Madhan! The list of characters is not...
Thanks Madhan! The list of characters is not finite. These are some dump character which creep into the records. I believe it would be helpful if you see my attached example.

Anyways, the logic is...
32,356
Posted By kanu_pathak
Are there some more options? Thanks in advance.. ...
Are there some more options? Thanks in advance..
-Kanu
Showing results 1 to 25 of 34

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