Re: Bash script help
From: Mathieu Masse (mathieu_masse_at_sympatico.ca)
Date: 02/07/04
- Previous message: Stuart Sears: "Re: Bash script help"
- In reply to: Stuart Sears: "Re: Bash script help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: redhat-list@redhat.com Date: Sat, 07 Feb 2004 10:50:07 -0500
Stuart Sears wrote:
>On Saturday 07 February 2004 15:29, Mathieu Masse wrote:
>
>
>>Stuart Sears wrote:
>>
>>
>>>use win='mnt/W2K/Documents\ and\ Settings/Mathieu\ Masse/Application\Data/
>>>Mozilla/Profiles/Default\ User/qe0cqve6.slt/'
>>>The single quotes will prevent the shell from interpreting the '\ ' bits
>>>as anything other than literal strings - this means that when you type
>>>$win, the value output should include the escapes.
>>>try it on the command line first!
>>>export win=...
>>>cd $win
>>>
>>>Stuart
>>>
>>>
>>Tried it doesn't work, gives me the following:
>>
>>cp: copying multiple files, but last argument `User/qe0cqve6.slt' is not
>>a directory
>>
>>
>so it's still interpreting the spaces as argument separators.
>here are my experiments with this, and the one tnat finally worked...
># export win='/mnt/w2k/Documents*/Stuart/Application*/Real/RealOne*/'
># echo $win
> /mnt/w2k/Documents and Settings/Stuart/Application Data/Real/RealOne Player/
># cd $win
># pwd
>/mnt/w2k/Documents and Settings/Stuart/Application Data/Real/RealOne Player
>
>so i would say that using the * wildcard seems like a useable way forward.
>for you this would be:
>/mnt/W2K/Documents*/Mathieu*/Application*/Mozilla/Profiles/Default*/
>qe0cqve6.slt
>
>give it a try and see if it works...
>
>Stuart
>
>ps you don't need to cc me, I'm a subscriber to the list
>
>
>
That worked thanks a lot, I would have never thought of using the wildcard!
-- Mathieu Massé M.Sc. Phone: (819) 775-4654 Email: mathieu_masse@sympatico.ca -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Stuart Sears: "Re: Bash script help"
- In reply to: Stuart Sears: "Re: Bash script help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]