minus-squarevpklotar@lemmy.worldtoLinux@programming.dev•regex and awk...linkfedilinkarrow-up2·7 days agoI know this isn’t grep or awk but of you simply want the first part I would probably use cut as following: ``` cut -d : -f 1 Simply put, cut the line in multiple parts with the colon as the delimiter and choose the first part. linkfedilink
I know this isn’t grep or awk but of you simply want the first part I would probably use cut as following: ``` cut -d : -f 1
Simply put, cut the line in multiple parts with the colon as the delimiter and choose the first part.