cut

How to cut lines separated by multiple spaces? Here is an example of cut command, that will remove all PHP packages from system dpkg -l | grep php | cut -d” ” -f3 | xargs apt purge -y Get user names cut -d’:’ -f1 /etc/passwd Display users with SSH enabled grep “/bin/bash” /etc/passwd | cut … Read more