I want to move in a specific folder all the files matching a simple pattern but i really don’t know how; this is what i tried:
mv *.o obj/*.o
don’t laugh at me, i’m not really handy with linux.
p.s i don’t know if it’s relevant, but the mv is actually inside a makefile
Just do:
The trailing
/is not strictly necessary, but I would recommend it – the effect is to have it error out ifobjis not a directory (or does not exist) and there is only one.ofile; otherwise, it would rename that one.ofile toobj, possibly overwriting the pre-existingobj.