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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.