Linux - GeneralThis forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Let's say I have 3 .sh files in a dir and a whole lot of files that are named like this:
index.html.1
index.html.2
index.html.3 ... and so on. How would I delete all of the html files? rm *.html won't work because of the number at the end. I know I could just move the 3 shell scripts out of there and delete the rest but I'm curious if there is another way without moving files. Anyone know?
Thanks,
vxc
p.s: If you think I can't do this with a single command and a shell script might work, I'll move this thread to the programming forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.