Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Owens Community College, Toledo, Ohio, Thomas McLeary, EET 208
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
Thanks for the aid. Tried the grep -w "[0-9]\{5\} file with no luck. the numbers are consecutive (12345) and I need to show the complete line that they are in.
this line has four 1234 numbers
this line has five 12345 numbers
this line has six 123456 numbers
this line has seven 1234567 numbers
this line has eight 12345678 numbers
part one of the lab is to just return the line with five numbers.
The forum has agreed with education world in order to not keep on tracking posts ( though we do depending the type of request...) and refuse anything not from professionals to create a dedicated forum for schools/homework but it has strict conditions for both sides: The student agrees what he post here is seen by all AND can not remove once happy and has to comply to the rules by filling the template that has been accepted by education authorities... For the people helping, you are now NOT to answer the question/topic... but to help, guide or correct the student that has to do the work himself...
I am not sure what the problem is I have followed the templet provided. If examples of code connot be given to help solve a problem then all I need is a book not the expertise of the Forum. I have tried all the suggestion given after exhausting the information recieved in class. I do believe the problem is not with the code but with the sequence it is written in.
So what we have established is that what needs to be matched is 5 digits (not numbers) in a row and that to the left (from the beginning) and to the right (right until the end) of them there can be zero or more characters that are NOT numbers. The negative complement of a range or class of characters inside square brackets is done with the negation operator ^ as the first character inside those brackets.
-------
What we will do in this section is give hints and try to help you on your way to understanding, not provide complete answers. The reason for this is two-fold:
We get letters from professors asking to please refrain from doing so.
We would not actually be helping you. How would it help you if we provide that answer, you copy that answer, hand over your assignment and you will have learned absolutely nothing.
There is nothing easier for us than to just provide the answer, but then we really would not be helping you.
Thanks for all the input. I reread all the threads and went back over what I had done and found that I had fat fingered one of the earlier commands that were suggested. The -w option made everything come together not only for that lab exercise but for two other exercises in that same lab.