Networking Forums

Networking Forums > Computer Networking > Linux Networking > piping output - line breaks??

Reply
Thread Tools Display Modes

piping output - line breaks??

 
 
linuxnooby
Guest
Posts: n/a

 
      04-01-2005, 03:47 AM
Hi

I am piping output of a command to a log file. I am using >> to
append to a log file.

I want to get some white space ( line breaks between chunks of output
to make it more readable.

when i try
echo \n\n >> logfile

instead of two line breaks i get this

output 1
nn
output 2

does anyone have nay better ideas??

cheers Dave
 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      04-01-2005, 03:51 AM
On 31 Mar 2005 19:47:41 -0800, linuxnooby wrote:
>
> when i try
> echo \n\n >> logfile
>
> instead of two line breaks i get this
>
> output 1
> nn
> output 2
>
> does anyone have nay better ideas??


/bin/echo -e "\n\n"
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      04-01-2005, 05:26 AM
On 2005-04-01, Bit Twister <(E-Mail Removed)> wrote:
> /bin/echo -e "\n\n"


Or just echo "" >> ... (echo adds newlines by default)
Davide

--
Microsoft seems to have gotten a lot of mileage out of the C2 rating for
NT with no network connection. I wonder if a B3 rating for Linux with no
power cord might be of value.
 
Reply With Quote
 
linuxnooby@yahoo.com.au
Guest
Posts: n/a

 
      04-04-2005, 03:33 AM
Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
piping a group of lines to a program rhXX Linux Networking 3 05-30-2007 12:33 PM
Piping audio stream Christian Christmann Linux Networking 0 10-17-2006 08:40 AM
SP2 Breaks MN-700/MN-720 Wireless Martin Broadband Hardware 8 08-14-2004 01:27 AM
piping over ftp Ivan Kelly Linux Networking 1 07-14-2004 03:02 AM
RPC Breaks RG Windows Networking 1 12-12-2003 07:44 PM



1 2 3 4 5 6 7 8 9 10 11