Quote:
Originally posted by NicoV
Hi everyone,
I have this project due to be handed in later today, and am stuck on two unix questions that i need to answer for it. I would appreciate if someone could help me out with the commands that i need.
Question 1:
show all lines in filename.txt that have exactly 6 words (existing of lowercase a-z).
Should use grep for this.
Question 2:
show all words in filename.txt which are spelled in ascending alphabetical order, eg: 'art', or 'in'.
This should be done using egrep.
Thank you very, very much if you could help me out here.
Nico V.
|
Here you go:
man grep
man egrep
Manual pages are free, exist on any decent system and are invaluable.
Use google.com and search away and learn, or buy a book and learn, if you have any further questions.
I assume you've never hung out in usenet before, but about 20% of the questions are people that want answers, and they will never understand why or how they work.
If you would provide some examples of what you are trying, or how you're trying this, I'll be willing to help. However, you're not going to learn if people just post the answer. After all, this is your class assignment and your home work. If you want help, let me know what you've got and I'll be glad to help you.