I've been using the cat command to concatenate files. To expedite the process is there a way to cat files that have a certain word in middle of the file name. I know how to use the asterisk to capture a certain word in the beginning or the end but not the middle.


You can use:

cat *word* > new_file

Now all the files with the "word" in their name will be concatenated in "new_file".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.