Use a shell script action in a workflow
You can extend the power of Automator by using shell commands within a workflow. For example, you can string several bash shell commands together to perform complex tasks, and then pass the results to a window.
Choose File > New.
Select a document type, then click Choose.
Type Run Shell Script in the search field, then select Run Shell Script in the search results.
Drag the Run Shell Script action into your workflow.
Click the Shell pop-up menu, then choose the shell environment.
Enter your shell commands in the command field.
The example command is
catand should be removed.
Test your workflow before saving it.