How to convert DAE file to OBJ on the command line

Converting one or multiple DAE files to OBJ format can be done easily using the assimp command line tool.

First, install assimp:

sudo apt-get install -y assimp-utils

Then, to convert only a single file

assimp export input.dae output.obj

or to convert all files in the current folder:

for i in *.dae ; do assimp export "$i" "${i%.dae}.obj" ; done