Forrest logo
tool overview
On this page you find all important commands for the CLI tool echo. If the command you are looking for is missing please ask our AI.

echo

echo command in linux is used to display line of text/string that are passed as an argument . This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file.

List of commands for echo:

  • airpaste:tldr:c5ba5 airpaste: Send text.
    $ echo ${text} | airpaste
    try on your machine
    explain this command
  • ajson:tldr:1a341 ajson: Read some simple JSON and calculate a value.
    $ echo '${3}' | ajson '${2 * pi * $}'
    try on your machine
    explain this command
  • alex:tldr:0145b alex: Analyze text from `stdin`.
    $ echo ${His network looks good} | alex --stdin
    try on your machine
    explain this command
  • argon2:tldr:04c95 argon2: Display the output hash without additional information.
    $ echo "${password}" | argon2 "${salt_text}" -e
    try on your machine
    explain this command
  • argon2:tldr:08fd0 argon2: Calculate a hash with a password and a salt with the default parameters.
    $ echo "${password}" | argon2 "${salt_text}"
    try on your machine
    explain this command
  • argon2:tldr:e0f7c argon2: Calculate a hash with the specified algorithm.
    $ echo "${password}" | argon2 "${salt_text}" -${select}
    try on your machine
    explain this command
  • argon2:tldr:e47c5 argon2: Calculate a hash with given iteration [t]imes, [m]emory usage, and [p]arallelism parameters.
    $ echo "${password}" | argon2 "${salt_text}" -t ${5} -m ${20} -p ${7}
    try on your machine
    explain this command
  • at:tldr:87c5c at: Display a system notification at 11pm on February 18th.
    $ echo "notify-send '${Wake up!}'" | at ${11pm} ${Feb 18}
    try on your machine
    explain this command
  • at:tldr:b0993 at: Execute a command from standard input at 10:00 AM today.
    $ echo "${--make_db_backup-sh}" | at 1000
    try on your machine
    explain this command
  • base64:tldr:56bcc base64: Encode from `stdin`.
    $ echo -n "${plain_text}" | base64
    try on your machine
    explain this command
  • base64:tldr:cb892 base64: Decode from `stdin`.
    $ echo -n ${base64_text} | base64 --decode
    try on your machine
    explain this command
  • batch:tldr:12406 batch: Execute a command from standard input.
    $ echo "${--make_db_backup-sh}" | batch
    try on your machine
    explain this command
  • bb:tldr:cee23 bb: Bind input to a sequence of EDN(Extensible Data Notation) values from stdin.
    $ echo "{:key 'val}" | bb -I "(:key (first *input*))"
    try on your machine
    explain this command
  • bc:tldr:22321 bc: Calculate an expression.
    $ echo '${5 - 3}' | bc
    try on your machine
    explain this command
  • bc:tldr:5c8e0 bc: Calculate an expression with the specified scale.
    $ echo 'scale = ${10}; ${5 - 3}' | bc
    try on your machine
    explain this command
  • bc:tldr:7e4fd bc: Calculate a sine/cosine/arctangent/natural logarithm/exponential function using `mathlib`.
    $ echo '${select}(${1})' | bc --mathlib
    try on your machine
    explain this command
  • boxes:tldr:00eeb boxes: Draw a box around a string.
    $ echo "${string}" | boxes
    try on your machine
    explain this command
  • boxes:tldr:46d38 boxes: Remove a box from a string.
    $ echo "${string}" | boxes -r
    try on your machine
    explain this command
  • boxes:tldr:711d2 boxes: Draw a box with a specific design around a string.
    $ echo "${string}" | boxes -d ${parchment}
    try on your machine
    explain this command
  • boxes:tldr:7af50 boxes: Draw a box with a width of 10 and a height of 5.
    $ echo "${string}" | boxes -s ${10}x${5}
    try on your machine
    explain this command
  • boxes:tldr:d82d5 boxes: Draw a box with centered text.
    $ echo "${string}" | boxes -a c
    try on your machine
    explain this command
  • circo:tldr:d8410 circo: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | circo -T ${gif} > ${path-to-image-gif}
    try on your machine
    explain this command
  • clip:tldr:d73b5 clip: Copy text without a trailing newline to the Windows clipboard.
    $ echo | set /p="some text" | clip
    try on your machine
    explain this command
  • clip:tldr:fc755 clip: Copy text with a trailing newline to the Windows clipboard.
    $ echo ${some text} | clip
    try on your machine
    explain this command
  • coproc:tldr:4537d coproc: Write to a specific coprocess `stdin`.
    $ echo "${input}" >&"$${{name}[1]}"
    try on your machine
    explain this command
  • cowsay:tldr:a61fb cowsay: Print an ASCII cow saying text from `stdin`.
    $ echo "${hello, world}" | cowsay
    try on your machine
    explain this command
  • cpio:tldr:cd79b cpio: Take a list of file names from standard input and add them [o]nto an archive in cpio's binary format.
    $ echo "${file1} ${file2} ${file3}" | cpio -o > ${archive-cpio}
    try on your machine
    explain this command
  • datamash:tldr:6ae61 datamash: Get the mean of a single column of numbers with a given decimal precision.
    $ echo -e '1\n2\n3\n4\n5\n5' | datamash -R ${number_of_decimals_wanted} mean 1
    try on your machine
    explain this command
  • datamash:tldr:c136a datamash: Get the mean of a single column of float numbers (floats must use "," and not ".").
    $ echo -e '1.0\n2.5\n3.1\n4.3\n5.6\n5.7' | tr '.' ',' | datamash mean 1
    try on your machine
    explain this command
  • datamash:tldr:db2f2 datamash: Get the mean of a single column of numbers ignoring "Na" and "NaN" (literal) strings.
    $ echo -e '1\n2\nNa\n3\nNaN' | datamash --narm mean 1
    try on your machine
    explain this command
  • dmenu:tldr:4a007 dmenu: Display a menu with custom items separated by a new line (`\n`).
    $ echo -e "${red}\n${green}\n${blue}" | dmenu
    try on your machine
    explain this command
  • dmenu:tldr:9c4a9 dmenu: Let the user choose between multiple items and save the selected one to a file.
    $ echo -e "${red}\n${green}\n${blue}" | dmenu > ${color-txt}
    try on your machine
    explain this command
  • docker:tldr:6871c docker: Log into a registry with password from `stdin`.
    $ echo "${password}" | docker login --username ${username} --password-stdin
    try on your machine
    explain this command
  • dot:tldr:d1dba dot: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | dot -T ${gif} > ${path-to-image-gif}
    try on your machine
    explain this command
  • echo:tldr:04010 echo: Print a text message. Note: quotes are optional.
    $ echo "${Hello World}"
    try on your machine
    explain this command
  • echo:tldr:07833 echo: Append a message to the file.
    $ echo "${Hello World}" >> ${file-txt}
    try on your machine
    explain this command
  • echo:tldr:54c46 echo: Print a message without the trailing newline.
    $ echo -n "${Hello World}"
    try on your machine
    explain this command
  • echo:tldr:635e5 echo: Enable interpretation of backslash escapes (special characters).
    $ echo -e "${Column 1\tColumn 2}"
    try on your machine
    explain this command
  • envsubst:tldr:db1ea envsubst: Replace environment variables in `stdin` and output to `stdout`.
    $ echo '${$HOME}' | envsubst
    try on your machine
    explain this command
  • factor:tldr:78dfc factor: Take the input from `stdin` if no argument is specified.
    $ echo ${number} | factor
    try on your machine
    explain this command
  • fakedata:tldr:1b1e7 fakedata: Generate data using a custom output template (the first letter of generator names must be capitalized).
    $ echo "${\{\{Generator\}\}}" | fakedata
    try on your machine
    explain this command
  • fdp:tldr:8ec73 fdp: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | fdp -T gif > ${path-to-image-gif}
    try on your machine
    explain this command
  • gh-auth:tldr:65465 gh-auth: Log in with a token from standard input (created in https://github.com/settings/tokens).
    $ echo ${your_token} | gh auth login --with-token
    try on your machine
    explain this command
  • gh-workflow:tldr:49e0d gh-workflow: Run a manual workflow using a specific branch or tag with JSON parameters from `stdin`.
    $ echo '${{"param1": "value1", "param2": "value2", ---}}' | gh workflow run ${select} --ref ${select1}
    try on your machine
    explain this command
  • git-credential:tldr:1b66a git-credential: Send credential information to all configured credential helpers to store for later use.
    $ echo "${url=http:--example-com}" | git credential approve
    try on your machine
    explain this command
  • git-credential:tldr:2ad09 git-credential: Erase the specified credential information from all the configured credential helpers.
    $ echo "${url=http:--example-com}" | git credential reject
    try on your machine
    explain this command
  • git-credential:tldr:f9cf3 git-credential: Display credential information, retrieving the username and password from configuration files.
    $ echo "${url=http:--example-com}" | git credential fill
    try on your machine
    explain this command
  • init Initialize forrest and create helping aliases.
    $ echo 'alias how="forrest run how"' >> ~/.bash_profile && source ~/.bash_profile
    try on your machine
    explain this command
  • json5:tldr:c1037 json5: Convert JSON5 `stdin` to JSON `stdout`.
    $ echo ${input} | json5
    try on your machine
    explain this command
  • keyctl:tldr:750a3 keyctl: Store a key with its value from standard input.
    $ echo -n ${key_value} | keyctl padd ${type_keyring} ${key_name} ${target_keyring}
    try on your machine
    explain this command
  • kitty:tldr:fb973 kitty: Copy the contents of `stdin` to the clipboard.
    $ echo ${example} | kitty +kitten clipboard
    try on your machine
    explain this command
  • linux:alias:create:permanent Create an alias and persist it.
    $ echo 'alias ${alias_name}="${alias_command}"' >> ~/.bash_profile
    try on your machine
    explain this command
  • logger:tldr:47ffc logger: Use a specific tag for every line logged. Default is the name of logged in user.
    $ echo ${log_entry} | logger --tag ${tag}
    try on your machine
    explain this command
  • logger:tldr:690d2 logger: Send the output to a remote syslog server running at a given port. Default port is 514.
    $ echo ${log_entry} | logger --server ${hostname} --port ${port}
    try on your machine
    explain this command
  • logger:tldr:85c14 logger: Log messages with a given priority. Default is `user.notice`. See `man logger` for all priority options.
    $ echo ${log_entry} | logger --priority ${user-warning}
    try on your machine
    explain this command
  • logger:tldr:fcd6c logger: Take input from `stdin` and log to syslog.
    $ echo ${log_entry} | logger
    try on your machine
    explain this command
  • lp:tldr:d22f1 lp: Print the output of a command to the default printer (see `lpstat` command).
    $ echo "test" | lp
    try on your machine
    explain this command
  • mailx:tldr:f36aa mailx: Send mail with content passed from another command.
    $ echo "${content}" | mailx -s "${subject}" ${to_addr}
    try on your machine
    explain this command
  • mlr:tldr:8d85c mlr: Receive JSON and format the output as vertical JSON.
    $ echo '{"hello":"world", "foo":"bar"}' | mlr --ijson --ojson --jvstack cat
    try on your machine
    explain this command
  • mlr:tldr:b88a4 mlr: Receive JSON data and pretty print the output.
    $ echo '{"hello":"world"}' | mlr --ijson --opprint cat
    try on your machine
    explain this command
  • msg:tldr:85824 msg: Send a message from `stdin`.
    $ echo "${message}" | msg ${select}
    try on your machine
    explain this command
  • msmtp:tldr:02c2c msmtp: Send an email without a configured account. The password should be specified in the `~/.msmtprc` file.
    $ echo "${Hello world}" | msmtp --host=${localhost} --port=${999} --from=${from@example-org} ${to@example-org}
    try on your machine
    explain this command
  • msmtp:tldr:44299 msmtp: Send an email using the default account configured in `~/.msmtprc`.
    $ echo "${Hello world}" | msmtp ${to@example-org}
    try on your machine
    explain this command
  • msmtp:tldr:61c70 msmtp: Send an email using a specific account configured in `~/.msmtprc`.
    $ echo "${Hello world}" | msmtp --account=${account_name} ${to@example-org}
    try on your machine
    explain this command
  • nc:tldr:9a1f1 nc: Send a HTTP request.
    $ echo -e "GET / HTTP/1.1\nHost: ${hostname}\n\n" | nc ${hostname} 80
    try on your machine
    explain this command
  • newsboat:tldr:2f790 newsboat: Alternatively, add feeds manually.
    $ echo ${http:--example-com-path-to-feed} >> "${HOME}/.newsboat/urls"
    try on your machine
    explain this command
  • nms:tldr:775d0 nms: Decrypt text after a keystroke.
    $ echo "${Hello, World!}" | nms
    try on your machine
    explain this command
  • nologin:tldr:bc69e nologin: Customize message for users with the login shell of `nologin`.
    $ echo "${declined_login_message}" > /etc/nologin.txt
    try on your machine
    explain this command
  • osage:tldr:09fe8 osage: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | osage -T ${gif} > ${path-to-image-gif}
    try on your machine
    explain this command
  • patchwork:tldr:88855 patchwork: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | patchwork -T ${gif} > ${path-to-image-gif}
    try on your machine
    explain this command
  • pretty-bytes:tldr:37bf2 pretty-bytes: Convert numeric bytes value from `stdin` to a human-readable string.
    $ echo ${1337} | pretty-bytes
    try on your machine
    explain this command
  • prqlc:tldr:36c85 prqlc: Compile a query.
    $ echo "${select}" | prqlc compile
    try on your machine
    explain this command
  • qr:tldr:0a89c qr: Specify the error correction level (defaults to M).
    $ echo "${data}" | qr --error-correction=${select}
    try on your machine
    explain this command
  • qr:tldr:afbe8 qr: Generate a QR code.
    $ echo "${data}" | qr
    try on your machine
    explain this command
  • qrencode:tldr:be5b6 qrencode: Convert input from pipe to a QR code and print it in terminal.
    $ echo ${string} | qrencode -t ansiutf8
    try on your machine
    explain this command
  • rev:tldr:80c0d rev: Reverse the text string "hello".
    $ echo "hello" | rev
    try on your machine
    explain this command
  • secrethub:tldr:aaad6 secrethub: Store a value supplied on `stdin` as a new or updated secret.
    $ echo "${secret_value}" | secrethub write ${path-to-secret}
    try on your machine
    explain this command
  • sfdp:tldr:76dae sfdp: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | sfdp -T ${gif} > ${path-to-image-gif}
    try on your machine
    explain this command
  • shell:warp:49dd1 Get number of elements in an array
    $ echo ${#${array_name}[@]}
    try on your machine
    explain this command
  • shell:warp:efc39 Get a value from an array
    $ echo $${{array_name}[${index}]}
    try on your machine
    explain this command
  • sxiv:tldr:65dc5 sxiv: Open a newline-separated list of images, reading filenames from standard input.
    $ echo ${filename} | sxiv -i
    try on your machine
    explain this command
  • tee:tldr:467d4 tee: Create a directory called "example", count the number of characters in "example" and write "example" to the terminal.
    $ echo "example" | tee >(xargs mkdir) >(wc -c)
    try on your machine
    explain this command
  • tee:tldr:a8aa3 tee: Append to the given files, do not overwrite.
    $ echo "example" | tee -a ${filename}
    try on your machine
    explain this command
  • tee:tldr:bb6c9 tee: Print standard input to the terminal, and also pipe it into another program for further processing.
    $ echo "example" | tee ${-dev-tty} | ${xargs printf "[%s]"}
    try on your machine
    explain this command
  • tee:tldr:ff914 tee: Copy standard input to each file, and also to standard output.
    $ echo "example" | tee ${filename}
    try on your machine
    explain this command
  • tr:tldr:3b86a tr: Replace all occurrences of a character from another command's output.
    $ echo ${text} | tr ${find_character} ${replace_character}
    try on your machine
    explain this command
  • tsort:tldr:1a8f7 tsort: Perform a topological sort consistent on strings.
    $ echo -e "${UI Backend\nBackend Database\nDocs UI}" | tsort
    try on your machine
    explain this command
  • twopi:tldr:a40cc twopi: Render a `gif` image using `stdin` and `stdout`.
    $ echo "${digraph {this -> that} }" | twopi -T ${gif} > ${path-to-image-gif}
    try on your machine
    explain this command
  • vegeta:tldr:4ec98 vegeta: Launch an attack on a server with a self-signed HTTPS certificate.
    $ echo "${GET https:--example-com}" | vegeta attack -insecure -duration=${30s}
    try on your machine
    explain this command
  • vegeta:tldr:72a7c vegeta: Launch an attack lasting 30 seconds.
    $ echo "${GET https:--example-com}" | vegeta attack -duration=${30s}
    try on your machine
    explain this command
  • vegeta:tldr:a4a8b vegeta: Launch an attack and plot the results on a graph (latency over time).
    $ echo "${GET https:--example-com}" | vegeta attack -duration=${30s} | vegeta plot > ${path-to-results-html}
    try on your machine
    explain this command
  • vegeta:tldr:b197c vegeta: Launch an attack and display a report.
    $ echo "${GET https:--example-com}" | vegeta attack -duration=${30s} | vegeta report
    try on your machine
    explain this command
  • vegeta:tldr:d278b vegeta: Launch an attack with a rate of 10 requests per second.
    $ echo "${GET https:--example-com}" | vegeta attack -duration=${30s} -rate=${10}
    try on your machine
    explain this command
  • xclip:tldr:78260 xclip: Copy the output from a command to the system clipboard, using short notation.
    $ echo 123 | xclip -sel clip
    try on your machine
    explain this command
  • xclip:tldr:a79c7 xclip: Copy the output from a command to the X11 primary selection area (clipboard).
    $ echo 123 | xclip
    try on your machine
    explain this command
  • xclip:tldr:f7920 xclip: Copy the output from a command to a given X11 selection area.
    $ echo 123 | xclip -selection ${select}
    try on your machine
    explain this command
  • xe:tldr:0e0a8 xe: Execute a shellscript, joining every `N` lines into a single call.
    $ echo -e 'a\nb' | xe -N${2} -s 'echo $2 $1'
    try on your machine
    explain this command
  • xml-escape:tldr:780be xml-escape: Escape special XML characters from `stdin`.
    $ echo "${}" | xml escape
    try on your machine
    explain this command
  • xml-unescape:tldr:2f5e8 xml-unescape: Unescape special XML characters from `stdin`.
    $ echo "${<a1>}" | xml unescape
    try on your machine
    explain this command
  • xsel:tldr:43bbf xsel: Use a command's output as input of the clip[b]oard (equivalent to `Ctrl + C`).
    $ echo 123 | xsel -ib
    try on your machine
    explain this command
  • yacas:tldr:7a46f yacas: Execute and print the result of one statement, then exit.
    $ echo "${Echo( Deriv(x)Cos(1-x) );}" | yacas -p -c /dev/stdin
    try on your machine
    explain this command
tool overview