Search Results

Search: Posts Made By: kbirde
1,702
Posted By kbirde
Hi kodak, Thanks. Works great. Cheers
Hi kodak,

Thanks. Works great.

Cheers
1,702
Posted By kbirde
column to row conversion with additional pattern
Hi there,

I've an input file1 as follows:
1001
1002
1003
1004
1005
I would like to have an output file2 as follows:
Numbers are 1001/ 1002/ 1003/ 1004/ 1005/

Any help is appreciated.
1,495
Posted By kbirde
Hi Jim, I got it to work by changing i=2. ...
Hi Jim,

I got it to work by changing i=2.

Thanks.
kbirde
1,495
Posted By kbirde
Hi Jim, This works perfect. I would like to...
Hi Jim,

This works perfect. I would like to request one modification. Instead of comparing all the fields on each row, can we modify the script to compare only the second, third and fourth field...
1,495
Posted By kbirde
Comparing two files
Hello there,

I've two files to compare as follows:

File1
1001
1003
1005
1007

File2
1005 1003 1007 1001
1002 1001 1006 1004
1003 1001 1005 1005
1003 1002 1006 1004

I...
2,164
Posted By kbirde
Hello Devaraj, Thanks so much for the...
Hello Devaraj,

Thanks so much for the assistance.

Cheers,
kbirde
2,164
Posted By kbirde
Hi Tyler, Thanks a lot. Can this be written...
Hi Tyler,

Thanks a lot. Can this be written in awk (bash shell)?

Regards,
kbirde
2,164
Posted By kbirde
Splitting a file based on two patterns
Hi there,

I've an input file as follows:

*START
1001 a1
1002 a2
1003 a3
1004 a4
*END
*START
1001 b1
1002 b2
1004 b4
*END
*START
1001 c1
1004 c4
*END
2,825
Posted By kbirde
Hi Devaraj, Thanks so much. It is working...
Hi Devaraj,

Thanks so much. It is working now. I guess the -t " " was the issue (but don't know why).

Regards,
kbirde
2,825
Posted By kbirde
Hi ldapswandog, Thanks a lot for the info....
Hi ldapswandog,

Thanks a lot for the info. I did try out the command 'join' as you mentioned but I got the following result for the newfile2.

1001 11
1004 100

instead of:

1001 11...
2,825
Posted By kbirde
awk program for file comparison
Hello there,


I'm trying to write an awk program in bash shell with the following three input files:


File 1
1001 1 2 3
1002 4 5 6
1003 7 8 9
1004 10 ...
Showing results 1 to 11 of 11

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