How can we extract a column from output in which whitespace is not in a regular format?
For example, when we type ps -ef, it shows all the process, process id's.... etc. How can we get only the last column or any specific column?
|
How can we extract a column from output in which whitespace is not in a regular format? For example, when we type |
||||
|
|
Using For example using
You can also use |
|||
|
|
|
Maybe you want:
To get the command name or
To get the command args or
To get the last argument. |
|||
|
|