Lampi
May 19th, 2009, 12:18 PM
I do have a bash script with several echo commands called like this:
echo -n "Hello World"
How do I format the echo line to force line feed AND carriage return after each command?
At the moment the echo output looks like this:
Hello World
Hello World
Hello World
Hello World
not what I had in mind...
Can I somehow combine /n oder /r to force line feed and carriage return in scripts or can I use ANSI / escape sequences?
echo -n "Hello World"
How do I format the echo line to force line feed AND carriage return after each command?
At the moment the echo output looks like this:
Hello World
Hello World
Hello World
Hello World
not what I had in mind...
Can I somehow combine /n oder /r to force line feed and carriage return in scripts or can I use ANSI / escape sequences?