Convert . log file to . txt in Bash

Asked

Viewed 259 times

1

Hello, I wonder how I can convert a. log file generated in a container in Docker and convert it to a txt file using Bash.

  • What kind of file is this . log generated by Docker, by any chance is a text file? Can you open it with vi for example?

1 answer

2


I don’t know if it would help but you can use the Unix move command.

Examples

mv MeuArquivo.log MeuArquivo.txt

Or in a specific directory...

mv /var/logs/MeuArquivo.log /var/logs/MeuArquivo.txt

Browser other questions tagged

You are not signed in. Login or sign up in order to post.