Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Do you abhor spaces in file names as much as I do?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
Rabrrrrrr Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:13 AM
Original message
Do you abhor spaces in file names as much as I do?
Maybe I'm just a holdout from the old unix days when we used underscores instead of spaces, but I hate spaces in file names.

Simply hate them.

Really bugs me when people send me a file, and the file name has spaces in it.

I also hate capital letters in file names.

:grr:

Who's with me?!
Printer Friendly | Permalink |  | Top
Midlodemocrat Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:14 AM
Response to Original message
1. Wow.
Who peed in your cheerios this morning?




Yes. I am still mad about the grocery cart.
Printer Friendly | Permalink |  | Top
 
Nicholas D Wolfwood Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:15 AM
Response to Original message
2. ...
:popcorn:
Printer Friendly | Permalink |  | Top
 
no name no slogan Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:21 AM
Response to Original message
3. Oh %20 you
chill out, homey...
:silly:
Printer Friendly | Permalink |  | Top
 
I Have A Dream Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:41 AM
Response to Original message
4. Spaces in file names certainly makes programming more...
Edited on Fri Oct-28-05 11:43 AM by I Have A Dream
difficult. x(

I hate capital letters only on UNIX machines. It doesn't matter to me on Windows machines since they're not case-sensitive.
Printer Friendly | Permalink |  | Top
 
petronius Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:54 AM
Response to Original message
5. They give me sort of a guilty pleasure...
...I put them in Word and Excel files, but usually not anywhere else. They seem to make a lot of ArcGIS tools crash, so I have a hell of a time trying to convince my students not to use them...
Printer Friendly | Permalink |  | Top
 
liontamer Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:56 AM
Response to Original message
6. I don't
I was glad when we could finally use spaces in file names
Printer Friendly | Permalink |  | Top
 
ghostsofgiants Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 11:56 AM
Response to Original message
7. For the most part, I agree...
Except for music and movies. Then it doesn't bother me.
Printer Friendly | Permalink |  | Top
 
bertha katzenengel Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 12:16 PM
Response to Original message
8. YES
Hate it, hate it, hate it. I don't know if it really does cause problems, but I FEAR that it does, so I hate it.

Plus it looks stupid.
Printer Friendly | Permalink |  | Top
 
billyskank Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 04:46 PM
Response to Reply #8
15. It causes problems in the command line
which is why Windows users (almost) never notice that it's a problem. But if you come across a filename with spaces in when working from a DOS prompt then you have to enclose the whole thing in quotes, like this:

cd "c:\Documents and Settings\rwild"

because otherwise the shell thinks 'and' is the next argument (because spaces separate commands and their arguments).
Printer Friendly | Permalink |  | Top
 
qnr Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 12:21 PM
Response to Original message
9. Yes, but they only last seconds
Edited on Fri Oct-28-05 12:24 PM by qnr

#!/bin/bash
# blank-rename.sh
#
# Substitutes underscores for blanks in all the filenames in a directory.

ONE=1 # For getting singular/plural right (see below)
number=0 # Keeps track of how many files actually renamed.

FOUND=0 # Successful return value.

for filename in * # Traverse all files in directory
do
echo "$filename" | grep -q " " # Check whether filename

if < $? -eq $FOUND > #+ contains space(s).
then
fname=$filename # Strip off path.
n=`echo $fname | sed -e "s/ /_/g"` # Substitute underscore for blank.

mv "$fname" "$n" # Do the actual renaming.

let "number += 1"
fi
done

if < "$number" -eq "$ONE" > # For correct grammar.
then
echo "$number file renamed."
else
echo "$number files renamed."
fi

exit 0



Edit: did some touchups to the text placement
Printer Friendly | Permalink |  | Top
 
RetroLounge Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 12:22 PM
Response to Original message
10. I still use 8 charater DOS names...
:D

RL
Printer Friendly | Permalink |  | Top
 
Heidi Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 12:25 PM
Response to Original message
11. That_drives_me_nuts.exe (nt)
Printer Friendly | Permalink |  | Top
 
nini Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 04:40 PM
Response to Original message
12. YES.. I work for a software company
and you'd be surprised how many times that causes problems on certain operating systems and network servers.

hisssssssssssssssssssssssssssssssssssss
Printer Friendly | Permalink |  | Top
 
NYC Liberal Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 04:43 PM
Response to Original message
13. Justgetridofspacesaltogether.
Iamsurwecandowithoutthem.It'showtheyusedtodoitanywaybackinancientdays.Forexampleyoucanprobablyreadwhatiamwritingrightnowright?
Printer Friendly | Permalink |  | Top
 
billyskank Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 04:43 PM
Response to Original message
14. YES!!! Spaces in filenames are the work of the devil!
They are a pain in the arse when I'm working in the command line! I have to escape the spaces with backslashes, like this:

$ cd /mnt/windows/Documents\ and\ Settings/rwild
Printer Friendly | Permalink |  | Top
 
Rabrrrrrr Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Oct-29-05 09:04 AM
Response to Reply #14
19. And that's exactly it!
I'm always suprised when people put filenames with spaces in them on their websites as well.

Dumbasses.
Printer Friendly | Permalink |  | Top
 
Fox Mulder Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 04:49 PM
Response to Original message
16. Woah...among all the things to get annoyed at...
Printer Friendly | Permalink |  | Top
 
Chicken Girl Donating Member (116 posts) Send PM | Profile | Ignore Fri Oct-28-05 07:05 PM
Response to Original message
17. It never used to bother me in Windows, but
then I switched to Linux. Everyone who doesn't think it's a big deal, try working with space-having Windows-imported filenames in a Linux terminal for a while and you'll see how annoying it is.

Capital letters aren't too bad, as long as there aren't a whole lot of them.
Printer Friendly | Permalink |  | Top
 
seemunkee Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 07:23 PM
Response to Original message
18. Yes but even more I abhor a
vacuum
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Wed May 01st 2024, 11:00 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC