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.
Yes I did, in fact I am an old man trying to learn, I am not trying just go by.
My understanding is the command will first search for delimeter ":" and then split the contents into fields, in this case are 5 fields. Fields 1 to 4 contents will be then deleted so it will display the contents from fifth field by end of line of each line. Then this output will be sent as input to grep. After that I am stuck! I don;t know how to finish it.
Thank you for your help!
Well look at just the grep command, it is searching for ^K within the string extracted by the cut command. The wc portion gives you a count of newlines, thus how many valid search results were detected because they will have been delimited by newlines.
A further suggestion is in your terminal to first type "set -xv" to enable verbose and debug in the shell. This is a per session thing, so once you exit that terminal, new terminals will not have those settings, unless your environment is set up that way, but that is non-typical.
I suggest you run the following commands, start with the basics and then build up to see what each addition changes. Only move to the next command once you understand what's going on with the current one.
Thank you so much rtmistler for your detailed explanation! Also thank you dab1414 for the link. suicidaleggroll, thank you for your suggestion. As a new in to this Linux world, that is the best way to do it. The problem is that I want to learn to fast....
Thank you so much rtmistler for your detailed explanation! Also thank you dab1414 for the link. suicidaleggroll, thank you for your suggestion. As a new in to this Linux world, that is the best way to do it. The problem is that I want to learn to fast....
Thank you again!
We get that, but as you can see, you're going to get better results when you show you efforts. Saying the keyword "homework" may be a mistake given how you described in your follow up. Instead say, "Hey, I'm trying to self learn, and this is what I'm looking at ..." and then do try to include some details on your efforts. Believe me, you'll get far more respectful and helpful answers. Also be aware that some answers may not show up so very fast. Long, long ago I asked a doozy. I asked it fairly detailed, just no one had any answers. I sort of self-solved it in another manner and literally months later someone offered thoughts. It was at that point where I learned to follow-up and update my original question as Solved and also to include my solution on the matter. It helps.
I now completely understand rtmistler. I am not a very experienced user when using forums plus as I said before English is my second language, so in many cases my words are npot the meaning I am looking for. Thank you again for your help! I am looking forward of participating in this great forum!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.