The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-26-2006
bobbyjohnz bobbyjohnz is offline
Registered User
  
 

Join Date: May 2005
Posts: 19
Hi Aparna

You have multiple types of files and unknown count of each . I don't have a single liner as you asked for. But a slighter smaller version than you have in hand. Please try this to see if its of any use

#/bin/ksh
for i in "cpu" "vmem" "mem"
do
paste -d"," *.${i} > ${i}.out
done

As you guess, it makes three files cpu.out, vmem.out and mem.out!!!