Search Results

Search: Posts Made By: kben
2,320
Posted By bartus11
Hmm, it seems that the previous file didn't...
Hmm, it seems that the previous file didn't contain Windows style line ends, but something else (OSX maybe?). If you still have the original files (containing ^M characters), then run this on them:tr...
2,320
Posted By bartus11
kben, post following output (using your target,...
kben, post following output (using your target, "big" files):head 1.txt | cat -ev
head 2.txt | cat -ev
2,320
Posted By bartus11
Run:tr -d '\r' < 1.txt > 1.txt.fixed tr -d '\r'...
Run:tr -d '\r' < 1.txt > 1.txt.fixed
tr -d '\r' < 2.txt > 2.txt.fixed
2,320
Posted By bartus11
Try:awk -F";" 'NR==FNR{a[$1]=$2;next}{$4=a[$1]}1'...
Try:awk -F";" 'NR==FNR{a[$1]=$2;next}{$4=a[$1]}1' OFS=";" 2.txt 1.txt
Showing results 1 to 4 of 4

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