Quantcast
Viewing all articles
Browse latest Browse all 6153

Using sed to filter out students in a list

I have a list of students, which I have saved to a text file students.txt.

John Doe Marketing Junior BBetty Metty Engineering Junior AJames Names Nursing Sophomore BBob Nob History Freshman BHope Nope Engineering C

It's probably very simple, but as I am a total beginner at shell scripting, what sed pattern command prints out the people, first and last names only, who have an A in their major (letter @ end)?

If you could link a helpful website for sed patternsearch rules related to lists that would be great as well.

Using vim, Ubuntu 16.04


Viewing all articles
Browse latest Browse all 6153

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>