find . -type f -name '*.c'
to find the list of .c files in my project. I want to open them all in the vim. I did something like this.
find . -type f -name '*.c' | xargs -- vim
It was not ideal. Is this correct or is there a better way. Please do not ask me to install a vim plugin. I am looking for unix way of doing things, i.e, by piping