Tiny Core Base > TCB Q&A Forum

shell script and \n

(1/1)

remus:
Hi all,
Doing a little basic shell scripting, and noticed that my script writes the \n character on screen, instead of creating a new line.

Heres an example

--- Quote --- echo "\n" $sep "SUCCESS Remote backup COMPLETED on $DateTime. E-mail sent with details.\n"
--- End quote ---

Will write the following to screen.

\n -------------------------------------------------------------------\n SUCCESS Remote backup COMPLETED on 06:23:13 AM 16-23-2014. E-mail sent with details.\n

bmarkus:
echo -e "\n"

remus:
thanks bmarkus, that works, its not required in ubuntu, is this the tinycore way ?

bmarkus:
Not TC, BusyBox shell. On system level forget *BUNTU as a reference.

It is a good practice to study TC scripts before writing scripts for TC.

Navigation

[0] Message Index

Go to full version