Based on the comment below me, it seems like I misunderstood the question. This should give you the expected output:
paste File1.txt File2.txt | awk '{print $1"\t" "700" NR "i" "\t" $2}' > File3.txt
Misunderstanding below:
If I understand correctly, you have two input files (File1.txt and File2.txt) and you want to create an output file (File3.txt) that contains the sorted and combined content of the two input files?
Assuming that the first column of each file is a unique identifier (e.g., RB0009, RB0010, etc.), and that you want to combine the two files by matching these identifiers, you could use the join command in Linux.
Here's an example command that should accomplish what you're looking for:
join -t $'\t' -a 1 -a 2 -o auto <(sort File1.txt) <(sort File2.txt) > File3.txt
Breakdown of the command:
join is the command we're using to join the two files.
-t $'\t' tells join to use a tab (\t) as the field separator.
-a 1 -a 2 tells join to include all lines from both files, even if there are no matches.
-o auto tells join to output the fields from both files, separated by a tab.
<(sort File1.txt) and <(sort File2.txt) are process substitutions that sort the contents of each file before passing them to join. This is important because join requires sorted input files in order to work properly.
> redirects the output of the join command to File3.txt.
The resulting File3.txt should contain the combined content of the two input files, sorted by the first column (the unique identifier).