Red Hat Academy Managing Files with File Globbing Online Exercises
Linux - NewbieThis 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.
Copy all files whose first four characters are composed of exactly three letters followed by a number into the directory xxxn
I have tried like every command i can think of just to get three letters and followed by any numbers
i've tried cp /usr/share/tcl8.4/encoding/???[a-z]*[0123456789].*
and a bunch of others but they either bring cp855 which is only two letters or just straight letters i need Help
thanx in advance and to think this is only Workbook 2 in linux class i'm in trouble
Chris Thanx for the reply but i'm in the beginning of learning Linux and we have not got to the grep command so i really couldn't figure it out i'm still really new
Okay i finally figured it out to list the results from the directory /usr/share/tcl8.4/encoding/
that contain three letters followed by a number i typed the command
cp /usr/share/tcl8.4/encoding/??[a-z][0-9]*.enc ~/xxxn/
This is the online Exercise Answer For the last one in Workbook 2 Chapter 5.
That's not 'exactly three letters followed by a number' unless by number they don't mean digit (which it sounds like they do in fact want).
You need some carefully named test files eg
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.