---
name: "gmt5syntax"
section: "1gmt"
platform: "linux"
package: "gmt-common"
version: "5.4.5+dfsg-2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/gmt5syntax"
---

# gmt5syntax(1gmt)

Convert old GMT script to use new 'gmt \<module\>' syntax

## NAME

gmt5syntax - Convert old GMT script to use new 'gmt \<module\>' syntax

## SYNOPSIS

**gmt5syntax** old\_script \> new\_script

## DESCRIPTION

**gmt5syntax** is a perl script that converts old-style GMT commands in, e.g., shell scripts, to the new **gmt \<module\>**-syntax.  This utility is located in the tools subdirectory of the data directory. **gmt --show-datadir** will show the path to the latter.

## SEE ALSO

gmt

## COPYRIGHT

2019, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
