Search Results

Search: Posts Made By: Abhiraj Singh
2,046
Posted By Abhiraj Singh
yes. They are in sorted order. i want output like...
yes. They are in sorted order. i want output like this
line1:11111
line3:33333
line5:55555
line7:77777
line9:99999

I am trying the following code but it is partly correct
awk...
2,046
Posted By Abhiraj Singh
Read row number from 1 file and print that row of second file
Hi. How can I read row number from one file and print that corresponding record present at that row in another file.
eg

file1
1
3
5
7
9

file2
11111
22222
33333
44444
55555
66666...
3,908
Posted By Abhiraj Singh
i have many pairs of file1 and file2 each...
i have many pairs of file1 and file2 each containing different values.. i want a solution so that based on values in file1 i get corresponding rows in file2
3,908
Posted By Abhiraj Singh
but this limits to this fine only.. i want to...
but this limits to this fine only.. i want to read from a file and then do operations in another file

---------- Post updated at 02:06 PM ---------- Previous update was at 02:05 PM ----------
...
3,908
Posted By Abhiraj Singh
Get row number from file1 and print that row of file2
Hi.
How can we print those rows of file2 which are mentioned in file1. first character of file1 is a row number.. for eg

file1
1:abc
3:ghi
6:pqr
...
2,271
Posted By Abhiraj Singh
Thanks yoda.. Jist a query.. Will array size keep...
Thanks yoda.. Jist a query.. Will array size keep on growing for all files or wil it start from beginning when second file is searched??
2,271
Posted By Abhiraj Singh
awk - compare records of 1 file with 3 files
hi.. I want to compare records present in 1 file with those in 3 other files and print those records of file 1 which are not present in any of the files. for eg -

file1 file2 file3 ...
4,142
Posted By Abhiraj Singh
code editted
Code is edited in the original post
4,142
Posted By Abhiraj Singh
Yes drl.. Double quote mismatch was there.....
Yes drl.. Double quote mismatch was there.. Please let me know if you can convert this to perl
4,142
Posted By Abhiraj Singh
Thanks Jim.. But I want to avoid using sort as...
Thanks Jim.. But I want to avoid using sort as that would reorganise my file and hence display of records which I want to avoid.. Is there not any other solution except using gawk as I don't have...
4,142
Posted By Abhiraj Singh
Nawk Problem - nawk out of space in tostring on
Hi.. i am running nawk scripts on solaris system to get records of file1 not in file2 and find duplicate records in a while with the following scripts -compare
nawk 'NR==FNR{a[$0]++;next;} !a[$0]...
2,592
Posted By Abhiraj Singh
Compare and find records of file1 not in file2
hi.. i am using solaris system and ksh and using nawk to get records of file1 not in file2(not line by line comparison). code i am using is nawk 'NR==FNR{a[$0]++} !a[$0] {print"line:" FNR"->" $0} '...
Showing results 1 to 12 of 12

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