In the directory /home/in I have files like this:crust.MC12345.txt crust.etcMC12345.txtcrust.MC23456.txtcrust.etcMC23456.txt crust.etctcMC23456.txt I only need to move crust.etcMC12345.txt and crust.etcMC23456.txt to another dir, /home/out.what is the pattern i use in the mv command for the above scenario ?
move files of a particular pattern to another directory
shell;wildcards;mv
If I correctly understand your question the answer is very simple:mv crust.etcMC* /home/outor if etc is not literal string, but for example any three characters then:mv crust.???MC* /home/out