Hi Folks,
I have a file like:
mainfile.txt:
-------------
Code:
file1 abc def xyz
file1 aaa pqr xyz
file2 lmn ghi xyz
file2
Hi,
I have two files in different folders, one is file1.tsv, another one is file2.tsv,
how to compare the file2's header to the file1 header.
File1.tsv
Code:
A B C D
File2.tsv
Code:
A B C D
1 a g z
2 s h x
3 d
How to cilnd desided output from file1 and file2 with awk.
file1
Code:
1 2
7 8 9
14 15 16
21 22 23
28 29 30
file2
Code:
aa bb cc
dd ee ff
gg hh ii jj
kk ll
mm
Desired output
Code:
1 2 aa bb cc
7 8 9 dd ee ff
14 15 16 gg
I have two file like follows. I want to merge them according the first field of file1. The separator of file1 is tab, while the second one is ",".
Hi all,
I wanted to do a lookup table method using awk or any other commands. I would really appreciate any help on this. my sample input and desired outputs are given below. file1.txt is my lookuptable file, file2.txt, is the main file.
Hi,
We need to compare a text file File1.txt and config file File2.txt in a way that it checks if the content of File1.txt exists between the range mentioned in File2.cfg.
The range here is the range between col1 and col2 of File2.cfg
If the content of File1.txt lies between the range of File2.cfg then output should display the count of col3 of File2.cfg in Outputfile.
For Example :
File1.txt
Hi all.
I have 2 files like these:
file1
Code:
3 -2 5 4 . . .
3 3 3 4 . . .
2 2 3 4 . . .
3 -2 8 4 &nb
Hi Friends,
I have two files as input with data that looks like this:
file1.txt
Code:
1
2
3
4
file2.txt
Code:
a,aa
b,bb
c,cc
d,dd
e,ee
f,ff
instead of me doing 2 while loops to get the combinations
Code:
while read line_file1
do
while read line_file2
do
 
Hi, everyone!
I have a file, when I print its $1 out it show several strings like this:
Code:
AABBCC
AEFJKLFG
FALEF
FAIWEHF
What I want to do is that, after output of each record, search the string in all files in the same folder, print out the record and file name.
This is what I want to get.
HTML Code:
AABBCC 232 546 file1
AABBCC 432 653&