Deleting files particular type of file using rm?
Hello,
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.
|