Artificial intelligent assistant

Concatenating files from a directory using cat gives "No such file or directory" error I have some files in a directory A. From another directory B, I want to concatenate them in one single file. I use the command line `cat` like `cat path_A/* > my_file_output` I have an error that say `No such file or directory` cat /data/chei2402/ibra/test_infernal/nbF-050_nbSeqs-[20-40]/Train/* > nbF50_train.fasta cat: '/data/chei2402/ibra/test_infernal/nbF-050_nbSeqs-[20-40]/Train/*': No such file or directory When I enter the directory A. and execute either cat * > my_file_output` or cat * > path_B/my_file_output it works fine. But I want cat path_A/* > my_file_output Thank you for your help.

You must either escape your `[` and `]` to `\[` and `\]` or put the path in quotes to prevent these globs to expand, make sure to keep the `*` out of the quotes:


cat '/data/chei2402/ibra/test_infernal/nbF-050_nbSeqs-[20-40]/Train/'* > nbF50_train.fasta

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 2eb3ca0f84508d46dba5b3deffecbd78