Forrest logo
back to the inkscape tool

inkscape:tldr:29135

inkscape: Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape.
$ inkscape ${filename-svg} --select=path123 --verb="${EditDuplicate;ObjectRotate90;FileSave;FileQuit}"
try on your machine

This command is using the software Inkscape to perform a series of actions on a specified SVG file.

Here's a breakdown of the command structure:

  1. inkscape: This is the name of the software that is being executed.

  2. ${filename-svg}: This is a placeholder for the actual filename of the SVG file that you want to operate on. The actual filename should be provided in place of this placeholder when executing the command.

  3. --select=path123: This option is used to select a specific element within the SVG file. In this case, the element with the ID or name "path123" will be selected.

  4. --verb="${EditDuplicate;ObjectRotate90;FileSave;FileQuit}": This option specifies a sequence of actions to be performed on the selected element. Each action is enclosed in curly braces and separated by semicolons.

  • EditDuplicate: This action duplicates the selected element.
  • ObjectRotate90: This action rotates the duplicated element by 90 degrees clockwise.
  • FileSave: This action saves the modified SVG file.
  • FileQuit: This action closes Inkscape after completing the previous actions.

By using this command and replacing ${filename-svg} with the actual filename, you can duplicate the selected element, rotate it by 90 degrees, save the modified SVG file, and close Inkscape.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the inkscape tool