Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
a) find all jpg files from the entire file system. Hint: use the command find -name.
b) find all lines beginning with a or j, from all the files in the current directory. Hint: use grep.
c). find all the lines beginning with the character a and end with one or more occurrences of the character o, followed by n, from all the files in the current directory. Hint: use egrep with meta symbols, ?, *, +, etc.
Read the rules - we won't do your homework. We will help if you have problems after trying.
Check the manpage for each hint you were given (man grep) - use q (for quit) to exit the manpage.
im really new who this whole linux thing. taking a while for me to get it. do you know what to do or answer to the question
Yes...the answer is "Don't post your homework questions and ask for a handout"...again...as you have in your OTHER two threads, where you were told the EXACT SAME THING.
AGAIN...we will help you, but YOU, PERSONALLY have to show us what work/effort/ideas you have put into finding the answers.
Pay attention in class. Use the books and materials provided. Ask the instructor for help after class. Ask your classmates for a study group time and location.
The point of being in school is to learn how to learn. Going to a forum and asking for exact answers to questions isn't going to help you in the long run. Especially if those answers are very easy to find answers to with a quick 'man find' or 'man grep' or 'find --help' or 'grep --help' or google 'linux find all jpg files'.
a) find all jpg files from the entire file system. Hint: use the command find -name.
b) find all lines beginning with a or j, from all the files in the current directory. Hint: use grep.
c). find all the lines beginning with the character a and end with one or more occurrences of the character o, followed by n, from all the files in the current directory. Hint: use egrep with meta symbols, ?, *, +, etc.
Every one of these questions comes with a hint on how to solve it. So how can you say you don't know what to do? I've never seen such bone idleness!
I've just checked all the threads started by this particular member - they're all related to homework! Where's their work ethic?
You can't bring that up...it's apparently a bad/racist/bigoted/mean/insert-derogatory-word-here thing to mention. I always remember something I heard years ago: people will be exactly as lazy and stupid as the folks around them LET THEM BE.
We all worked with folks before, and the lazy ones on the team only got away with it, if the other team members pulled him along. Once folks stop doing such things, the lazy person will whinge and complain about how "no one helps them"...and one of two things happens:
They leave
They actually learn, become productive, and contribute
Either way: problem solved. My experience has been about a 70-30 split. But that 30% that learns turn out to be some of the best folks.
When I was in college (never mind, you young whippersnappers ...!), they spoke of "computer anxiety" and I didn't believe it until I saw it for myself. Those were the days of timesharing terminals, and one student came into our office in tears, saying that the computer wasn't working. So, I went to help her.
She had arranged the area around her terminal like a surgeon's booth, with the homework instructions, her BASIC program written out on the coding-form that she had dutifully purchased, and the terminal. I walked up, reached behind the terminal to the power switch and turned it on ... and she said: "Stop. Thank you." She fairly shushed me out of the room. You can deduce what had happened by now, and so did she. I wouldn't steal her (remaining) pride for anything. I just smiled and said, "okay, you know where our offices are," and left the room.
- - - - -
As far as this student is concerned: there is only one way to learn how to do this sort of thing, and you might in due time find that it is not the line of work for you. In the meantime, it is much harder than it looks(!) because you are learning a skill. And, as others have said, "learning how to learn this sort of thing." With practice it can become second-nature but in the short term it will feel like someone has hit you in the face with an ice-cold iron skillet.
"Over here is a collection of useful software tools, sitting in a tool box. Over there is a list of tasks that you are to do, somehow using one or more of these tools. (The instructor gives you a hint, at this point, but won't do so later ...)
There is nothing deterministic about this assignment. I'm sure that the student would be well-schooled (ahem ...) in tackling the problem if it had been presented as a multiple-choice test in which he already knew that one of the five possible answers given on the page was the right one and that the other four were wrong. Thanks to our "No Child Left Behind" (sic) [non-]educational system, he'd be able to find the answer by an experienced process of elimination ... knowing that the teacher would, if necessary, give him the correct answer in order to keep her job.
But that's not what a computer professional does for a living. A computer professional, even more than "writing software," uses tools, and selects the proper tool to use (Tim Toady: "TMTOWTDI == there's more than one way to do it™"). Having decided how to use the tool(s) to perform the task, s/he also must verify that the result is entirely complete and correct. It's considerably harder than it looks.
Last edited by sundialsvcs; 12-21-2016 at 08:01 AM.
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.