Pular para o conteúdo

util.dev.br

Utilities for Developers

  • Tools
  • Library
  • Contact

Write to a file

You can use the “echo” command to write to a file. For example, the following command writes the string “example” to the file “file.txt”:

echo “example” > file.txt

Autor jgouveaPublicado em 25 de fevereiro de 202325 de fevereiro de 2023Categorias File Processing

Navegação de Post

Anteriores Post anterior: Reading the contents of a file
Próximo Próximo post: Adding content to a file
  • Bash shell
  • Debugging
  • File Processing
  • Flow commands
  • Functions
  • Process Management
  • Regular Expressions
  • String Manipulation
  • Variables and Operators
util.dev.br Developed by util.dev.br - © 2025 - All rights reserved