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.
Just one more question, I want to select a group of files in the midnight commander to delete later.
I do '+' to appear the select menu, then I want to select to 2 kind of files (*.log and *.out).
What I currently do is press '+' and write *.log and press Enter, then I press again '+' and write *.out and press Enter.
Now I've selected these 2 types of files in a directory.
What I want to know is if there's a Regular expression that allows to select these 2 type of files at once.
For example, I do '+', then I write *.[log|out], and press Enter. (These example don't work, it's just to explain myself).
The name of the files that I want to select at once are:
1.out
3.out
5.out
2.log
4.log
6.log
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.