I have a task to merge three files in linux, so i used awk to achieve this task. hostsfiles is a variable which has test.txt test1.txt and test3.txt
awk 1 {{ hostsfiles | join(' ') }}
I get below error. How do i avoid the error when any one of the file is missing
fatal: cannot open file `/test.txt' for reading (No such file or directory