Re: OT: Need help from bash experts... bad filename chars -- oopss

2002-02-12 Thread Alvin Oga
hi ya alan yuppers... ooppss... am smoking funny stuff again... ( just woke up ) meant its a pain to save/restore those whacky names on *nix from bash/perl and tar|find vs find|tar makes difference too and win98 wont allow mkdir "foo/tmp" nor "foo\0tmp" as their dirnames at least n

Re: OT: Need help from bash experts... bad filename chars

2002-02-12 Thread Alan Shutko
Alvin Oga <[EMAIL PROTECTED]> writes: > and you cannot save/create/restore these files on *nix > -- you'd need some kind of filename mapping Incorrect. You could create every single one of your examples on Unix. The only characters you can't use on Unix are / and \0. You may have to try a

Re: OT: Need help from bash experts... bad filename chars

2002-02-12 Thread Alvin Oga
hi romuald the only whacky filenames/directories i was able to create (mkdir) on win98 was... foo tmp space foo'tmp apostrophe foo`tmp back-tick foo$sale foo!tmp foo#tmp [EMAIL PROTECTED] foo%tmp foo^tmp foo(tmp foo)tmp foo[tmp foo]tmp and i think you can play tricks with backspace'd name

Re: OT: Need help from bash experts...

2002-02-12 Thread Günter Knab
On Mon, Feb 11, 2002 at 09:22:06PM -0500, Neal Lippman wrote: *snipped* > At a bash prompt, I can issue either: > cp "/mount/windows/spaced name/*" target > OR > cp /mount/windows/spaced\ name/* target > and all works fine. > However, from within a bash script, something like: > > #!/bin/sh > sour

Re: Re: OT: Need help from bash experts...

2002-02-12 Thread Paolo Falcone
Romuald DELAVERGNE wrote: >Hi, > >As we are speaking about strange characters in filename, >I would like to know if it is possible to create a directory or a filename >with a '/' ? > >I think it's the only character we can't use. Is it true ? No you can't use /. / is for directories. There are

Re: OT: Need help from bash experts...

2002-02-12 Thread Romuald DELAVERGNE
Hi, As we are speaking about strange characters in filename, I would like to know if it is possible to create a directory or a filename with a '/' ? I think it's the only character we can't use. Is it true ? Romuald.

Re: OT: Need help from bash experts... humm

2002-02-12 Thread Ross Burton
On Tue, 2002-02-12 at 09:04, Alvin Oga wrote: > > On Tue, 12 Feb 2002, Greg Murphy wrote: > > > Greetings, > > > > The following should work: > > > > #!/bin/sh > > sourcedir="/mount/windows/spaced name" > > cp "$sourcedir"/* $target > > i say that the above will barf on windows filenames like

Re: OT: Need help from bash experts... humm

2002-02-12 Thread Alvin Oga
On Tue, 12 Feb 2002, Greg Murphy wrote: > Greetings, > > The following should work: > > #!/bin/sh > sourcedir="/mount/windows/spaced name" > cp "$sourcedir"/* $target i say that the above will barf on windows filenames like "tom's proposal.doc" and "2002 Budget: 1st quarter" few other whac

Re: OT: Need help from bash experts...

2002-02-12 Thread Greg Murphy
Greetings, The following should work: #!/bin/sh sourcedir="/mount/windows/spaced name" cp "$sourcedir"/* $target On Monday 11 February 2002 20:22, Neal Lippman wrote: > Sorry for OT posting; I am not sure if there is a newsgroups for bash > experts, so I figured I'd try here. > > I need to be

Re: OT: Need help from bash experts...

2002-02-11 Thread Alvin Oga
hi neal i think you also need to watch out for other ms windoze gotchas space in filenames are easy to handle... more common problems for tar, cp and other unix utils ... /home/me/tom's proposal/ ticks is a major problem /home/me/ leading spaced names/

Re: OT: Need help from bash experts...

2002-02-11 Thread Jesse Goerz
On Monday 11 February 2002 21:22, Neal Lippman wrote: [...] > At a bash prompt, I can issue either: > cp "/mount/windows/spaced name/*" target > OR > cp /mount/windows/spaced\ name/* target > and all works fine. > > However, from within a bash script, something like: > > #!/bin/sh > sourcedir=/moun

Re: OT: Need help from bash experts...

2002-02-11 Thread Ron Johnson
On Mon, 11 Feb 2002 21:22:06 -0500 Neal Lippman <[EMAIL PROTECTED]> wrote: [snip] > I have tried all sorts of variants: > sourcedir="/mount/windows/spaced\ name" > sourcedir="/mount/windows/spaced\\ name" > sourcedir=/mount/windows/spaced\\ name" [EMAIL PROTECTED]:~$ cat tst.sh #!/bin/sh d="foo b

Re: OT: Need help from bash experts...

2002-02-11 Thread Eric G . Miller
On Mon, 11 Feb 2002 21:22:06 -0500, Neal Lippman <[EMAIL PROTECTED]> wrote: > Sorry for OT posting; I am not sure if there is a newsgroups for bash > experts, so I figured I'd try here. > > I need to be able to write a bash script that can copy files from a directory > who's name includes a spa

Re: OT: Need help from bash experts...

2002-02-11 Thread Geoff Ludwiczak
On Mon, Feb 11, 2002 at 09:22:06PM -0500, Neal Lippman wrote: > Sorry for OT posting; I am not sure if there is a newsgroups for bash > experts, so I figured I'd try here. I'm no bash expert, I'll try though. > > I need to be able to write a bash script that can copy files from a directory > w