Based on the following metadata, group the linked path and relevant txt file into groups in a format like this:

Format

“”“
Group 1: 의약품_화장품_패키징
- 의약품_화장품_패키징
- train_anno_의약품_화장품_패키징.txt
- valid_anno_의약품_화장품_패키징.txt

Group 2:...

”“”

Here is the data:

drwxr-xr-x  2 ubuntu ubuntu     49152  3월 23 16:04  Checked/
-rwxrwxrwx  1 ubuntu ubuntu     36978  3월 23 16:03  Checked.txt*
lrwxrwxrwx  1 ubuntu ubuntu        53  3월 28 14:59  Chinese_dataset -> /home/ubuntu/DeepOCR/Data/chinese_ocr/Chinese_dataset/
-rw-rw-r--  1 ubuntu ubuntu  72044779  2월 23 16:48  Chinese_dataset.txt
lrwxrwxrwx  1 ubuntu ubuntu        50  3월 28 14:59  Chinese_Street_View_Text -> /home/ubuntu/DeepOCR/Data/Chinese_Street_View_Text/
lrwxrwxrwx  1 ubuntu ubuntu        51  3월 28 15:02  Data_invoice -> /home/ubuntu/DeepOCR/Data/Data_invoice/small_images/
-rw-rw-r--  1 ubuntu ubuntu   1753993 12월 28 12:58  Data_invoice.txt
lrwxrwxrwx  1 ubuntu ubuntu        32  3월 28 14:59  google -> /home/ubuntu/DeepOCR/Data/google/
-rwxrwxrwx  1 ubuntu ubuntu 324688651  3월  6 19:05  google.txt*
lrwxrwxrwx  1 ubuntu ubuntu        43  3월 28 15:02  hiertext_rec -> /home/ubuntu/DeepOCR/Data/hiertext/crop_img/
-rw-rw-r--  1 ubuntu ubuntu  25125394  3월 31 17:33  hiertext_rec_line.txt
-rw-rw-r--  1 ubuntu ubuntu  57249523  4월  4 16:33  hiertext_rec_word.txt
lrwxrwxrwx  1 ubuntu ubuntu        40  3월 28 15:02  ICDAR2019-LSTV -> /home/ubuntu/DeepOCR/Data/ICDAR2019-LSTV/
-rw-rw-r--  1 ubuntu ubuntu  17842971  3월  3 14:45  ICDAR2019-LSTV.txt
drwxrwxr-x  2 ubuntu ubuntu      4096  2월 27 10:57  .ipynb_checkpoints/
lrwxrwxrwx  1 ubuntu ubuntu        75  3월 28 15:03  korean_text_in_the_wild -> '/home/ubuntu/DeepOCR/Data/한국어 글자체 이미지/04.Text_in_the_wild'/
-rw-rw-r--  1 ubuntu ubuntu  85791544  2월  9 13:12  korean_text_in_the_wild_char.txt
-rw-rw-r--  1 ubuntu ubuntu  27678662  2월  7 18:57  korean_text_in_the_wild.txt
-rw-rw-r--  1 ubuntu ubuntu 566561020 12월 27 00:28  medicine_cosmetic.txt
lrwxrwxrwx  1 ubuntu ubuntu        39  3월 28 15:05  MLT2017 -> /home/ubuntu/DeepOCR/Data/MLT2017/train/
-rw-rw-r--  1 ubuntu ubuntu   2811497  1월 27 11:38  MLT2017.txt
lrwxrwxrwx  1 ubuntu ubuntu        33  3월 28 15:05  MLT2019 -> /home/ubuntu/DeepOCR/Data/MLT2019/
-rw-rw-r--  1 ubuntu ubuntu    721375  1월 27 11:40  MLT2019.txt
lrwxrwxrwx  1 ubuntu ubuntu        69  3월 28 15:07 '의약품,화장품 OCR데이터_crop' -> '/home/ubuntu/DeepOCR/Data/AIHUB/의약품,화장품 OCR데이터_crop'/
lrwxrwxrwx  1 ubuntu ubuntu        79  3월 28 15:11 '대용량 손글씨 OCR 데이터(Recoginition)' -> '/home/ubuntu/DeepOCR/Data/AIHUB/대용량 손글씨 OCR 데이터(Recoginition)'/
lrwxrwxrwx  1 ubuntu ubuntu        75  3월 28 15:11  synthtiger_kr -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_gen_korean/images/
-rw-rw-r--  1 ubuntu ubuntu  22332542  2월 27 11:02  synthtiger_kr.txt
lrwxrwxrwx  1 ubuntu ubuntu        80  3월 28 15:09  synthtiger_punctuation -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_gen_punctuation/images/
-rw-rw-r--  1 ubuntu ubuntu   5302767 11월 25 15:47  synthtiger_punctuation.txt
-rw-rw-r--  1 ubuntu ubuntu      4590  2월 27 11:12  test_fix_anno.ipynb
-rw-rw-r--  1 ubuntu ubuntu   2246693 12월 28 13:06  test_get_invoice_corpus.ipynb
-rw-rw-r--  1 ubuntu ubuntu      4224 12월 28 12:49  test_rename_path.ipynb
lrwxrwxrwx  1 ubuntu ubuntu        39  3월 28 15:04  text_renderer -> /home/ubuntu/DeepOCR/Data/text_renderer/
-rwxrwxrwx  1 ubuntu ubuntu  57693932  3월 20 16:14  text_renderer_effect.txt*
lrwxrwxrwx  1 ubuntu ubuntu        47  3월 28 15:08  text_renderer_korean -> /home/ubuntu/DeepOCR/Data/text_renderer_korean//
-rwxrwxrwx  1 ubuntu ubuntu  67072929  3월 21 18:24  text_renderer_korean.txt*
-rwxrwxr-x  1 ubuntu ubuntu   2833682  3월 20 11:56  text_renderer.txt*
-rw-rw-r--  1 ubuntu ubuntu  14088558  1월 17 19:36  train_Chinese_Street_View_Text.txt
lrwxrwxrwx  1 ubuntu ubuntu        67  3월 28 15:12  train_gen_hanja -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_gen_hanja/
lrwxrwxrwx  1 ubuntu ubuntu        73  3월 28 15:12  train_gen_hanja_char -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_gen_hanja_char//
-rw-rw-r--  1 ubuntu ubuntu   2238890  2월 21 17:02  train_gen_hanja_char.txt
-rw-rw-r--  1 ubuntu ubuntu   2681968  2월 10 11:52  train_gen_hanja.txt
lrwxrwxrwx  1 ubuntu ubuntu        69  3월 28 15:12  train_gen_invoice -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_gen_invoice/
-rw-rw-r--  1 ubuntu ubuntu   2914442 12월 28 17:19  train_gen_invoice.txt
lrwxrwxrwx  1 ubuntu ubuntu        74  3월 28 15:10  train_gen_phone_number -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_gen_phone_number/
-rw-rw-r--  1 ubuntu ubuntu    638626 12월 28 17:18  train_gen_phone_number.txt
-rw-rw-r--  1 ubuntu ubuntu 374684220 12월 28 10:23  train_handwritting.txt
lrwxrwxrwx  1 ubuntu ubuntu        31  3월 28 15:08  train_naver -> /home/ubuntu/DeepOCR/Data/Naver/
-rw-rw-r--  1 ubuntu ubuntu 176315584 12월 28 14:08  train_naver.txt
lrwxrwxrwx  1 ubuntu ubuntu        37  3월 28 15:08  train_space -> /home/ubuntu/DeepOCR/Data/train_space/
lrwxrwxrwx  1 ubuntu ubuntu        40  4월  5 11:16  train_space_2 -> /home/ubuntu/DeepOCR/Data/train_space_2//
-rwxrwxrwx  1 ubuntu ubuntu   3778890  4월  5 11:17  train_space_2.txt*
lrwxrwxrwx  1 ubuntu ubuntu        39  4월  5 15:23  train_space_3 -> /home/ubuntu/DeepOCR/Data/train_space_3/
-rwxrwxr-x  1 ubuntu ubuntu   3978890  4월  5 15:24  train_space_3.txt*
-rwxrwxrwx  1 ubuntu ubuntu   1778890  3월 14 11:57  train_space.txt*
lrwxrwxrwx  1 ubuntu ubuntu        73  3월 28 15:08  train_web_email_proxy -> /home/ubuntu/DeepOCR/SynthTiger/synthtiger/data_gen/train_web_email_proxy/
-rw-rw-r--  1 ubuntu ubuntu   3206808 12월 27 18:14  train_web_email_proxy.txt