What the weird files ‘!’ and ‘export’ are and where do they come from

file

I have a MacBook which was recently bought and macOS Sierra 10.12.5

Sometimes the weird files named '!' and 'export' are being created in some random directories, for example in my home directory or in others. The files are 0kb both and have such permissions and owner:

-rw-r–r– alx(my user) staff

What application creates such files and why? I'm tired of deleting these files from everywhere.

Best Answer

I've checked the .bash_profile file and found this lines:

> export GOPATH=$HOME/go
> export PATH=$GOPATH:$GOPATH/bin:$PATH
> !

It looks like I made a mistake when I ran console command during GO installation. I've removed this '>' symbols and now everything is ok.