Echo newline in Bash imprime literal

Mots clés : bashechonewlinebash

meilleur 5 Réponses Echo newline in Bash imprime literal

vote vote

94

printf "hello\nworld\n" 
vote vote

90

echo -e "Hello\nworld" echo -e 'Hello\nworld' echo Hello$'\n'world echo Hello ; echo world 
vote vote

78

echo $'hello\nworld' 
hello world 
vote vote

60

echo "Hello," echo "" echo "World!" 
vote vote

59

#!/bin/bash function GET_RECORDS() {    echo -e "starting\n the process"; }  echo $(GET_RECORDS); 
#!/bin/bash function GET_RECORDS() {    echo -e "starting\n the process"; }  GET_RECORDS; 

Questions similaires