Skip to content

Instantly share code, notes, and snippets.

@gilsondev
Created October 15, 2013 19:31
Show Gist options
  • Save gilsondev/6997334 to your computer and use it in GitHub Desktop.
Save gilsondev/6997334 to your computer and use it in GitHub Desktop.
Inserir conteúdo em arquivo usando comando cat e comando de redirecionamento

Usando cat e redirecionamento para inserir texto

Use da seguinte forma:

$ echo cat <<EOF > .env
> DEBUG=True
> PORT=8000
> EOF

E depois verifique:

$ cat .env
DEBUG=True
PORT=8000
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment