Search Results

Search: Posts Made By: freeroute
2,107
Posted By freeroute
I have a little problem with the above join...
I have a little problem with the above join command:

If a hash contain semicolon ":", than the output will be wrong.

file1.txt format: hash:salt:ID...
2,107
Posted By freeroute
Tried. Not the same output. Thanks for the...
Tried. Not the same output. Thanks for the support.
2,107
Posted By freeroute
Thank you for your help. Working. Every...
Thank you for your help. Working.
Every solution you said works (awk and join).
2,107
Posted By freeroute
Okay. Thanks for your help. I try with no...
Okay. Thanks for your help. I try with no success:mad:. I have to read man pages of join and awk again...

Edit: I tried with file1.txt, file2.txt. It works, but with the original big...
2,107
Posted By freeroute
With the sample input files you provided, why is...
With the sample input files you provided, why is there only one line of output?Sorry, I forget to post other matching output lines.

Thanks. I tried, here is the bash error message:
awk -F: 'NR ==...
2,107
Posted By freeroute
I use Debian GNU Linux, and bash shell. I...
I use Debian GNU Linux, and bash shell.

I tried this command join <(sort -t":" -k 1 file1.txt) <(sort -t":" -k 2 file2.txt) > file3.txtFor your question:
1.) there should be match. (if not,...
2,107
Posted By freeroute
Add new column from another file
Hi,

I have 2 files.

file1 contains by lines: hash:salt:id
file2 contains by lines: username:hash:salt

I would like to add a new coloumn (id) form file1 to file2.

The new file should...
Showing results 1 to 7 of 7

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