LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove * from file nameS (https://www.linuxquestions.org/questions/linux-newbie-8/remove-%2A-from-file-names-289765/)

zchoyt 02-13-2005 04:27 PM

remove * from file nameS
 
I downloaded a bunch of mp3s and they all start with some BS credit or name. Like www.xxxxxxxx.com-filename1
www.xxxxxxxx.com-filename2
www.xxxxxxxx.com-filename3

Is there a quick way to remove the garbage from the files, perhaps using the rename command?

Thx.

zchoyt 02-13-2005 04:33 PM

I should have read the man page before posting. That's what the rename command is for. I meant to say mv.

The rename command:
rename www.garbage.com "" ./*

works fine for anyone who stumbles on this post in the future.


All times are GMT -5. The time now is 08:34 AM.