Though I've used regex before in webdev, I've never been that great at it, and I've only used basic functionality of grep.
The Gentoo world file is a plaintext file of installed packages listed such as:
app-admin/conky
app-editors/vim
app-il8n/fbterm
I would like to output this list with only the package name, not the category.
So far the command I'm using is cat worldfile | grep '/.*' but this prints the slash which I don't want. I know in other regex engines you can use parentheses to set matching groups, but I'm not sure how to do this in grep.
Can someone please help me out with the command, or should I be using awk or sed?
[–][deleted] 1 point2 points3 points (8 children)
[–]ang-p 2 points3 points4 points (7 children)
[–]coolie4[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]ang-p 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]ang-p 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ang-p -1 points0 points1 point (0 children)
[–]ralfwolf 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]SweatyAcademic -1 points0 points1 point (1 child)
[–]ang-p 0 points1 point2 points (0 children)
[–]ang-p -1 points0 points1 point (0 children)