Ravi Sir's Cards › AWS
cut breaks on many spaces?
This interview card answers: cut breaks on many spaces? Cut counts each space. Squeeze first, or use awk. Column 2 of ps.
Read card text
What this card says
What it is
cut counts each space.
Why it matters
Squeeze first, or use awk.
How / example
Column 2 of ps.
ps aux | awk '{print $2}'