Professional Web Applications Themes

Unix alias command in script file - Mac Applications & Software

Le 29/05/03 3:19, dans [email]0001HW.BAFAD84400017877F0305600news.earthlink.net[/email], «Dave Reiser» <dbreiserearthlink.net> a écrit: > On Wed, 28 May 2003 17:37:04 -0400, Jacky Bendayan wrote > (in message <preem.palver-164321.23370328052003news1-1.free.fr>): > >> You should try to escape the outer (and probably the inner as well) >> quotes with \ (antislash). >> > > I'm really slipping here. My .login file was working as completely as the > startup item, I just wasn't checking thoroughly enough. Your suggestion got > me chasing down several options, and the following command works in the > .login script: > > alias cpdb cp ~/dir1/DBforPalm.pdb ~/Doents/Palm/Users/mine/\'Files To > Install\'/DBforPalm.pdb > ...

  1. #1

    Default Re: Unix alias command in script file

    Le 29/05/03 3:19, dans [email]0001HW.BAFAD84400017877F0305600news.earthlink.net[/email],
    «Dave Reiser» <dbreiserearthlink.net> a écrit:
    > On Wed, 28 May 2003 17:37:04 -0400, Jacky Bendayan wrote
    > (in message <preem.palver-164321.23370328052003news1-1.free.fr>):
    >
    >> You should try to escape the outer (and probably the inner as well)
    >> quotes with \ (antislash).
    >>
    >
    > I'm really slipping here. My .login file was working as completely as the
    > startup item, I just wasn't checking thoroughly enough. Your suggestion got
    > me chasing down several options, and the following command works in the
    > .login script:
    >
    > alias cpdb cp ~/dir1/DBforPalm.pdb ~/Doents/Palm/Users/mine/\'Files To
    > Install\'/DBforPalm.pdb
    >
    > i.e., no outer quotes, escaped single quotes in specific folder name
    > containing spaces.
    >
    > Unix is so useful, if only it weren't so hard to learn...
    >
    > Thanks for the help.
    >
    > Dave
    > [email]dbreiserearthlink.net[/email]
    >
    Yet another option is to escape the spaces in the pathname
    ie: ... /mine/Files\ ToInstall/DBforPalm.pdb

    Christine Leseigneur Guest

  2. #2

    Default Re: Unix alias command in script file

    Christine Leseigneur wrote:
    > Yet another option is to escape the spaces in the pathname
    > ie: ... /mine/Files\ ToInstall/DBforPalm.pdb

    This is one of the reasons I no longer use whitespace in either file or
    directory names. Less ambiguous!

    H
    --
    h u g h c h a l A T e i r c o m D O T n e t
    hughchal Guest

Similar Threads

  1. I need help on a command for my Unix class---PLEASE ! ?
    By 1328 in forum Linux / Unix Administration
    Replies: 6
    Last Post: November 25th, 06:57 PM
  2. Portable unix du command
    By Dan Muey in forum PERL Beginners
    Replies: 8
    Last Post: November 19th, 07:40 AM
  3. what is different between SIZE and RES of unix command top?
    By Jaguk Ku in forum Linux / Unix Administration
    Replies: 1
    Last Post: November 11th, 03:03 PM
  4. Windows Explorer Right Click Command (+ Custom Command Script)
    By lennySydney webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 1
    Last Post: September 6th, 07:59 PM
  5. unix command to delete parts of a file
    By melissa_benkyo in forum Linux / Unix Administration
    Replies: 6
    Last Post: July 9th, 07:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139