I have a lab question asking me to use grep with a regex pattern to match every word where the third letter from the beginning of the line is an "a" and save it with a redirect. How can I do that?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
||||
|
|
|
This should answer your question:
|
|||
|
|
The solution proposed by @rahmu is simple if you look for low positions, but what if you look for the character number 25? Put in 25 dots? In such a case the following solutions could be at hand. With
With
|
|||
|
|