944,110 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 2821
  • Perl RSS
May 24th, 2007
0

grep into one line

Expand Post »
Hi
i ahve following find & grp command the command look into the file and check the pattern and output to three lines.

is it is possible this output into one line seperated with some characters

-------

find ./*temp.log* | xargs -i{} cat {} | egrep -e 'Control:' -e 'Run' |cut -c1-100

the out put of this file is


Control File: /u01/cle/dc/der/temp.ctl
Run began on Wed May 23 23:15:00 2007
Run ended on Wed May 23 23:31:20 2007


i need the out put like in one continoous line

Control File: /u01/cle/dc/der/temp.ctl , Run began on Wed May 23 23:15:00 2007 ,Run ended on Wed May 23 23:31:20 2007
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
raj_repos is offline Offline
1 posts
since May 2007
May 24th, 2007
0

Re: grep into one line

I think you have posted in the wrong forum, this is the perl forum. Post your question in the appropriate shell scripting forum if there is one.
Last edited by KevinADC; May 24th, 2007 at 4:41 am.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Data consolidation across an array a.k.a. Hashed to death... heeelp...
Next Thread in Perl Forum Timeline: javascript and perl





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC