Filnamn med mellanslag från Windows…

…kan bli ett elände. Om man har tillgång till en Unix- eller Linux-prompt så är detta ganska lätt att åtgärda med ett skript (ex Bash). För att i en viss katalog ändra från ” ” till (exempelvis) “_”:

for x in *\ *;
y=$(echo “$x”| sed y/\ \/_/)
mv “$x” “$y”

och alla filnamn har nu istället underscore (“_”) istället för mellanslag i alla positioner.

2 thoughts on “Filnamn med mellanslag från Windows…

  1. Hey there would you mind sharing which blog platform you’re using? I’m
    planning to start my own blog soon but I’m having a difficult time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique.
    P.S My apologies for getting off-topic but I had to ask!

  2. Hi! I speak no polish :-) (you are from Poland?); At first I thought I’d share a link about different CMSes (), but then I realized that it’s in swedish… I write some articles, and replies on other sites in english, alas not this one… G++ is great b.t.w., necessary time for my home page disappear easily… In G++ almost all of my replies are in english.

    I have no experience in BlogEngine and B2evolution; Drupal used to be more advanced than WordPress a couple a years ago, now WordPress have rapidly improved and the choice for advanced CMS users must be difficult. But I would absolutely recommend WordPress for a beginner!

    My knowledge about WordPress “themes” are limited, the “looks” can be very different between “WordPress site”. You can accept the basic look of a simple theme, or “tweak” it as your knowledge improves. My current theme are not tweaked at all, so the codfe produced are sadly invalid concearning HTML(5) and CSS.

Leave a Reply

Your email address will not be published. Required fields are marked *