Loading...
Shell Script

ECHO Command

The built-in echo command is an older form of printf command. Bash provides it for compatibility with almost all the shells. echo does not use a format string format like printf command

It is used to display the text or variable on the output screen. The below example narrates the usage of echo command.

#!/bin/bash
### Script to echo command
echo Welcome to webnoidschools

Output

$ ./script1.sh
Welcome to webnoidschools

 

Leave a Reply

Your email address will not be published. Required fields are marked *