Thanks Jitendra my problem is solved.
Thanks & Regards Jayesh Labade. --- On Fri, 9/7/10, Jitendra Gondaliya <jitendra.gondal...@gmail.com> wrote: > From: Jitendra Gondaliya <jitendra.gondal...@gmail.com> > Subject: Re: [Linux_Mantra] single line output of two commands > To: Linux_Mantra@yahoogroups.com > Cc: linuxvada...@yahoogroups.com > Date: Friday, 9 July, 2010, 9:31 AM > Hi Jayesh, > > Use below command to get output in single line. > > # { date && uptime; } | paste -s >> test.log > > > Regards, > JITENDRA > > > > > On Fri, Jul 9, 2010 at 4:38 AM, Jayesh Labade <jay.lab...@yahoo.in> > wrote: > > > > > > > Hi All, > > > > how we can get single line output of two commands. > > > > suppose, I run > > #{ date && uptime; } >> test.log > > > > It creates one test.log file & output is like > this.. > > > > Thu Jul 8 17:58:47 EST 2010 > > 17:58:47 up 58 days, 11:58, 3 users, load average: > 0.01, 0.09, 0.10 > > > > I want such that result of date & uptime command > should be written in same > > line only. while here it in two saperate lines. > > HELP ME > > > > Thanks & Regards > > > > Jayesh Labade. > > > > > > > > > [Non-text portions of this message have been removed] > > > > ------------------------------------ > > Yahoo! Groups Links > > > linux_mantra-fullfeatu...@yahoogroups.com > > >