I have used QGIS Geoprocessing tool Difference to cut polylines (SHP) into to smaller pieces using a polygon (SHP). This works very good in QGIS.
Now, to speed up the process, I'd like to be able to do the exact same thing but from the Terminal (so I can later make a shell script).
Maybe GDAL has these functions? In that case, how?
I'm using a Mac.