Forrest logo
back to the echo tool

rev:tldr:80c0d

rev: Reverse the text string "hello".
$ echo "hello" | rev
try on your machine

The command echo "hello" | rev is a combination of two commands separated by the pipe symbol |.

  1. echo "hello" - The echo command is used to display text on the terminal. In this case, it will display the word "hello".

  2. rev - The rev command is used to reverse the order of characters in a given input. When used after the pipe symbol |, it takes the output from the previous command (echo "hello") as input and reverses it.

So, when you execute the command echo "hello" | rev, it will display the reversed text "olleh" on the terminal.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the echo tool