Next Question
RSS
No Best Answer Selected
wdawe
Question
June 12, 2009 09:21 PM
In Linux, how can I add the .html suffix to fifty different files at once?
I have a bunch of files that I used wget to download from a wiki. The problem is that when they downloaded, they downloaded without a .html suffix. i.e. "After_Hours" instead of "After_Hours.html".
How can I add the .html suffix to all these files at once? I tried "rename * *.html" but it gave me "Bareword "After_Hours" not allowed while "strict subs" in use at (eval 1) line 1." and stopped.
How can I add the .html suffix to all these files at once? I tried "rename * *.html" but it gave me "Bareword "After_Hours" not allowed while "strict subs" in use at (eval 1) line 1." and stopped.
Interesting Question?
Yes (0)
No (0)
Email to a friend |
RSS
No Best Answer Selected
Answers (2)
wdawe
June 13, 2009 07:13 AM
- Fact Refuted
Doesn't work, gives a mv: target '``'*.html` is not a directory
Tip wdawe for this comment
Report
June 24, 2009 04:52 AM
The for command in the shell is a great one to learn even though it doesn't look pretty. Once you know it, it comes in handy for all sorts of little things like this.
Report
Answer this Question
Related Questions
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- aquamaniac100, November 30, 2009 11:11 PM
- halmstad123, November 30, 2009 11:01 PM
- sverige123, November 30, 2009 10:59 PM
- conundrum_barba..., November 30, 2009 10:54 PM
- franklanfranco, November 30, 2009 10:53 PM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More