If you asked how to get the PID of a well-known team, it would look something like this:
If you gave the command below # The command issued was ***
dd if = / dev / diskx of = / dev / disky
Then you will use:
PIDs=$(ps | grep dd | grep if | cut -b 1-5)
Here, all necessary unique characters are transferred to the field, and this field can be displayed using
echo $ PIDs
Don-Pierre Halfaway Jul 18 '18 at 23:15 2018-07-18 23:15
source share