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.
I've several folder with name like u001, u002
and so on and in each folder for example in u001, there are files with u001.tc u001.cm etc based on the folder name (in u002 there will be u002.tc, u002.cm ). I'm trying to have a code that will search the folders for corresponding .cm files (u001.cm and u002.cm and so one) and list all the folders numbers (like u001 etc)printed in a text file that has not got any .cm file.
I'm not a computer expert, so any scripts will be highly appreciated!
If the if the directories are u00000 (five digits), Do I need to use five? sign.
Yes. But only the u00000 directories will match, not u000 or u0000. If you have different formats for the directories names, and no other file or directory start with character "u", you can use u* instead of u???. This will match ANY number of character after "u".
Otherwise you have to use a counter to loop over all the directories or a regular expression. Which is the exact sequence of your directories, anyway? The first is u001... and the last one?