1

Using grep to search a file

view story
linux-howto

http://unix.stackexchange.com – Re : grep command. I have to search a file for the names of all the students in the school's Linux system. I am able to do this and return about 665 names. (First string of /etc/passwd file). From there, I need to sort on the students who's name ends in 'o' and also those who have two or more 'o' in their name. This isn't actually for me — it is indeed homework but for a friend. I am way past the age of homework :) He has to use grep to get the results. I haven't used grep for years, I played a round a little but can't stay away from using other commands to achieve this. I wa (HowTos)