Name: Anonymous 2011-02-23 20:27
Help a fucking retarded winfag out with a stupid fucking dumbshit problem? Thanks.
TL;DR dumbfag trying to use grep in Cygwin and failing.
Goal: extract only words beginning with un- from a very large text file (or multiple files) and output all matches to a file. Needs to be only single words starting with un-, not whole lines where matches are found.
Problem: can't figure out how to pull out the whole word instead of just the "un." grep " un" gets me all the lines containing words starting with "un," but that's no use, and grep -o " un" is just going to return "un"s. How do?
Why I want to do it, in case you're interested:
I'm trying to do a bit of linguistics research by identifying "ungrammatical" constructions where the affix un- attaches to a noun base. This is generally considered ungrammatical by English speakers (e.g. *uncup, *unbook, *uncomputer), but there have been some notable exceptions and I'm looking to identify them in the works of certain authors historical and present. Since I'm working with a rare construction, there's no surefire way to filter out the non-noun parts of speech from my search, so I just have to sort through everything starting with un-.
TL;DR dumbfag trying to use grep in Cygwin and failing.
Goal: extract only words beginning with un- from a very large text file (or multiple files) and output all matches to a file. Needs to be only single words starting with un-, not whole lines where matches are found.
Problem: can't figure out how to pull out the whole word instead of just the "un." grep " un" gets me all the lines containing words starting with "un," but that's no use, and grep -o " un" is just going to return "un"s. How do?
Why I want to do it, in case you're interested:
I'm trying to do a bit of linguistics research by identifying "ungrammatical" constructions where the affix un- attaches to a noun base. This is generally considered ungrammatical by English speakers (e.g. *uncup, *unbook, *uncomputer), but there have been some notable exceptions and I'm looking to identify them in the works of certain authors historical and present. Since I'm working with a rare construction, there's no surefire way to filter out the non-noun parts of speech from my search, so I just have to sort through everything starting with un-.