I am using dir function to list the content of a folder but it gives . and .. for first two folder. Is there any way to get rod of this silly process.
Can I use regular expression in dir function ? (if I can, it can be a solution)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know of any built-in solution, but I tend to do the following:
The
setdiffcommand removes the unwanted elements.Another cheap way to get rid of
.and..is using wildcards (Windows only):