DEV Community

Clearing your Unix Terminal and other commands using Go scripts

Michele Caci on January 20, 2021

When you want to run shell commands, like for example clearing the terminal, from a Go program or script this is how you can do: cmdName := "cle...
Collapse
 
jairforero profile image
Jair Forero

Hi!, please Tol undefined :(

Collapse
 
mcaci profile image
Michele Caci • Edited

Hi, sorry I'm just realizing this. From what I see from the code and my memories it could be any number. I need to check this when I 'm back in front of a PC. Thanks for spotting this.

EDIT: I checked the code and correcting the example. Thanks again!