понедельник, 22 апреля 2013 г.

unique escaping of ' in shell

if you need to escape single quote in a bash script, e.g. in bashrc:
alias='cool command with ' inside'
- you must replace it with '"'"'
i.e.:
alias='cool command with '"'"' inside'

p.s. explanation.

1 комментарий:

  1. With nothing but your design file and 3D PARTLAB, Space Heaters your part could be rapidly manufactured and delivered straight to your door. Don’t go away your corporation on maintain, work with 3D PARTLAB to get the job carried out now. With the assistance of 3D PARTLAB, BigRep’s on-line 3D printing service, your elements are manufactured to the best standard of large-format additive manufacturing.

    ОтветитьУдалить