Re: Bash script help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

And when I do it on the command line I get this:

[mathieu@localhost nautilus-scripts]$ export win='/mnt/W2K/Documents\ and\ Settings/Mathieu\ Masse/Application\ Data/Mozilla/Profiles/Default\ User/qe0cqve6.slt'
[mathieu@localhost nautilus-scripts]$ cd $win
bash: cd: /mnt/W2K/Documents\: No such file or directory
[mathieu@localhost nautilus-scripts]$


--

Mathieu Massé M.Sc.

Phone: (819) 775-4654
Email: mathieu_masse@xxxxxxxxxxxx


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux