On Feb 20, 7:45 am, Scott Vargovich <[email protected]> wrote: > The shell really doesn't like spaces.
Yes, it does seem that way :) Unfortunately, I'm coming from Windows. I've got files galore with spaces in them. Things are a bit different there because each file has 2 names. A file named MY DATA.TXT can also be referenced by the name MYDATA~1 (or something along those lines). There are 2 things you can do, either > replace the spaces with a character - like an underscore - or whenever you > manipulate a file that has spaces, put it in double quotes. Your initial cp > command would work if you did it this way: > > cp "MY DATA.TXT" "MY DATA.BAK" > Thanks, I'll try it out. I need to see if the shell removes the double quotes when passing command line arguments to my programs. I also want to make some test runs and see what happens with wildcards, as in: ls "/home/MY DATA.*" -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
