Is there any other way to get data from a file then populate the fields into other file by using any script file, such as awk? (sed script might be okay to use it) Note: it doesn't have to be using grep and find.
file1.txt
AAA Abcd
Watermelon Apple
8/25/19 11/24/19
4
55
file2.txt
[[letters_aaa]]
[[letters_abcd]]
[[fruit_names]]
[[date_start]]
[[date_end]]
[[four_hours]]
[[num_fiftyfive]]
merge into this one
AAA
Abcd
Watermelon Apple
8/25/19
11/24/19
4
55
I tried using awk script but I wasn't sure what to write after locating number of line. This script is all I can do:
BEGIN {
}
{
if(NR==1) {
print $1 $2
}