I need to find the CPU load being used by a particular process,say for example "java".Also i need to write that process's load to a file. i used the following command:
But it lists all the processes and their load. I need just the load of java alone. Is there any way to parse the output or somebody help me with a shell program?