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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
- Does it only have to have one of the letters r-t
- Are all the files only 3 characters long
- If all 3 letters are to be represented, is the order important
- If all 3 letters are to be represented, may other characters be between them
- Does the middle imply exactly, ie. 'ore' or could it be 'reverse' or are we implying simply not at the start or end
- Does 'list files' also imply that no directories or other types should be listed
As you can see, the current question is quite ambiguous
List files that has letter ' r ' to ' t ' in the middle
...so you may need to get some clarification before submitting your answer.
But if you take it to mean all files that include one or more of the letters 'r' to 't' between one or more leading and one or more trailing letters, then let's see how to do that...
Do you know how to match 'any' characters in a filename? If not, look up 'wildcard' and 'globbing'. But I'll give you a hint that '*' will match all filenames with one or more characters (not beginning with '.', ignore that for now).
You already seem to know how to express ranges of characters such as [r-t].
So think about how you would match anything followed by 'r' to 't' followed by anything.
hmm.. i think i just needto see the list of file names that has r,s,t in the middle of the file name like for example the word "ARM" we can see that the middle letter of the word is R .and also its in any length
Last edited by deidei112; 01-07-2015 at 02:38 AM.
Reason: forgot to put a explanation