Home > OS >  Shell scripting
Shell scripting

Time:10-12

In the shell file, use the top -p pid & gt;> 1. TXT I only need the operating results of an input to 1. TXT file, which is a great god know how to operate? Thank you very much!

CodePudding user response:

Use - n specified number line

CodePudding user response:

 
Top - n 1 -p pid & gt;> 1. TXT

CodePudding user response:

Thank you, according to the present method, the problem solved
  • Related