Answers for "echo multiple lines bash"

2

bash multiline ech

cat <<EOT >> my_file.txt
my text line 1
my text line 2
EOT
Posted by: Guest on October-13-2020
0

echo multiple lines bash

# This will output whatever is between the EOF tokens.
cat << EOF
usage: up [--level <n>| -n <levels>][--help][--version]

Report bugs to: 
up home page:
EOF

# You could change the EOF to whatever you want. For example:
cat << MY_TOKEN
bluh
bluh 
bliy
MY_TOKEN
Posted by: Guest on January-18-2022
0

PHP echo multiple lines example

<?php
	$var1="We". PHP_EOL;
	$var2="Welcome". PHP_EOL;
	$var3="You". PHP_EOL;
	$var4="On". PHP_EOL;
	$var5="Our". PHP_EOL;
	$var6="Softhunt". PHP_EOL;
	$var7="Website";
	$var1.=$var2.=$var3.=$var4.=$var5.=$var6.=$var7;//concatenating the string into $var1
	echo $var1 //printing concatenated string
?>
Posted by: Guest on December-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language