Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 268 Bytes

2024-03-26_the-`cut`-command.md

File metadata and controls

7 lines (5 loc) · 268 Bytes

The cut command

Convenient command to trim each line, especially if they all share a common format. The following grabs all the values in the environemnts, splits on . and only selects the first two parts

env | grep -i <SOMETHING> | cut -d '.' -f 1,2