S
S
Sergey Burduzha2017-08-19 22:53:28
ubuntu
Sergey Burduzha, 2017-08-19 22:53:28

How to find specific files and move to a folder?

There are
.vim files -> Dotvim
.viminfo
.vimrc -> Dotvim/.vimrc
.vimrc~
.vimrc.swp
..vimrc.un~
Copy them to the Dotvim folder
find -name .vim* -type f -exec mv {} ~/Dotvim
find: paths must be before the expression: .viminfo
Explain once to remember for a lifetime, I always get confused with copying and moving through find.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mayor-jojo, 2017-08-20
@serii81

find ~/ -name .vim* -type f -exec mv {} ~/Dotvim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question