1

I have -

|Books  
  |--LaTeX
  |--LaTeX_wikibook.pdf  
  |--LaTex_advanced.pdf
  |--vim_wikibook.pdf
  |--vimLaTeX.pdf

I want -

|Books  
  |--LaTeX
  |   |--LaTeX_wikibook.pdf  
  |   |--LaTex_advanced.pdf
  |   |--vimLaTeX.pdf
  |--vim_wikibook.pdf

I want to move only those file having substring LaTeX to the folder LaTeX. How can I do this in one command?

alhelal
  • 2,621

1 Answers1

3

Like this ...

cd Books/
mv *LaTeX*.pdf LateX/

You can exchange the "pdf" for a "*" to if you have other extensions.

Rinzwind
  • 299,756