Pular para o conteúdo

util.dev.br

Utilities for Developers

  • Tools
  • Library
  • Contact

Reading the contents of a file

You can use the cat command to read the contents of a file. For example, the following command reads the contents of the file “file.txt” and displays it on the screen:

cat file.txt

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

Navegação de Post

Anteriores Post anterior: Manipulate strings in shell scripts
Próximo Próximo post: Write 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