I am on ubuntu machine, the script I would like to build:#!/bin/bashraw=/some/pathnoised_raw=/some/other/pathfor part in test-snr-5 test-snr0 test-snr5; do  mkdir -p $part || exit 1;donefind $raw/test -iname *.raw | sort | xargs -I% basename % | \    tee>(awk -v dir=$raw/test '{printf %s/%s\n, dir, $0}') >> (in.list) | \    awk -v dir=$noised_raw/$part '{printf %s/%s\n, dir, $0}' >> $part/out.listWith $part is something like a loop for test-snr-5, test-snr0, test-snr5. I also tried... | tee>(awk -v dir=$raw/test '{printf %s/%s\n, dir, $0}' >> in.list) | \awk -v dir=$noised_raw/$part '{printf %s/%s\n, dir, $0}' >> $part/out.list[edit] this is the expected in.list and out.listin.list is going to be like this:/some/path/file1.raw/some/path/file2.raw/some/path/file3.raw...test-snr-5/out.list is going to be like this/some/other/path/test-snr-5/file1.raw/some/other/path/test-snr-5/file2.raw..test-snr0/out.list is going to be like this/some/other/path/test-snr0/file1.raw/some/other/path/test-snr0/file2.raw..and test-snr5 similiar to those out.list with ../test-snr5/file..I want to append all the basename file inside that directory into a text with different path on a different text file. Tee is not working as I expected. Maybe I could split them to not a oneliners, but then I have to find and sort million files again. This is the non oneliners I could do:find $raw/test-other -iname *.raw | sort | xargs -I% basename % | awk -v dir=$raw/test-other '{printf %s/%s\n, dir, $0}'>> speech.listfor part in test-snr-5 test-snr0 test-snr5; do  mkdir -p $part || exit 1;  if [ -f $part/output.list ]; then    echo removing the old list    rm $part/output.list;  fi  find $raw/test-other -iname *.raw | sort | xargs -I% basename % | awk -v dir=$noised_raw/$part '{printf %s/%s\n, dir, $0}'>> $part/output.list || exit 1;doneI am new to bash scripting and not so familiar with awk, so that's the most basic awk I know. Any help would be really appreciated.
Pipe one stdout into different awk that append to files
bash;awk;pipe;tee