Search Results

Search: Posts Made By: ernesto561
1,059
Posted By ernesto561
Thanks. It works perfectly. I spent some time...
Thanks. It works perfectly. I spent some time trying to figure out the problem, now I understand that it was related to 'FNR=NR'. Thanks again.
1,059
Posted By ernesto561
Compare two files with repeated lines
Hi all,

I've been trying to write a script to compare two files. This is what I want:

file 1:

a 1 2
b 5 9
c 4 7
file 2:

a
a
c
a
b
Output:

a 1 2
a 1 2
12,248
Posted By ernesto561
Thanks!!! It's simpler but effective. Thanks to...
Thanks!!! It's simpler but effective. Thanks to both of you
12,248
Posted By ernesto561
Thanks a lot!!! It worked perfectly
Thanks a lot!!! It worked perfectly
12,248
Posted By ernesto561
Merge files and add file name to the end of each line
Hello everybody,

I'm trying to merge a lot of files, but I want to include the filename to the end of each line. I've tried to use cat, but I got stuck.

My files are for example:

file01.001...
Showing results 1 to 5 of 5

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