I want to reverse the line direction for all lines in a shapefile from the Linux commandline (that is to say, using a script). Currently I'm using the SwapVectorDirection QGIS plugin which works well but has to be run manually. Ideally I'd like a solution using
ogr since I have it installed on my system.
This question is similar but I'm looking specifically for something I can include in a Linux script.