LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 02-13-2005, 04:27 PM   #1
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
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.
 
Old 02-13-2005, 04:33 PM   #2
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spaces in file names JohnKFT Slackware 3 11-09-2004 03:44 PM
Need to remove spaces from all file / dir names ?? Solution here! jsjohnst Linux - General 2 07-20-2004 09:39 PM
Reorganizing file names Nice-n-Slow Programming 13 05-24-2004 10:21 AM
duplicate file names? BajaNick Linux - Software 3 08-25-2003 04:00 PM
Screwed-up File Names Pwcca Slackware 7 03-02-2003 09:31 PM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration