Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #167663
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Shell - escapes |
| Date | 2016-05-10 12:50 +0200 |
| Message-ID | <rxdoJ-P9-3@gated-at.bofh.it> (permalink) |
| References | <rxcM2-qT-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, Die Optimisten wrote: > > How can I escape a ' inside '...' > > e.g. perl -e 'print '$ and a' ' Mark Fletcher wrote: > perl -e 'print '\''$ and a'\'' ' Or by ending the range of ' and packing the literal ' into double quotes: perl -e 'print '"'"'$ and a'"'"' ' consisting of these quotation pieces 'print ' "'" '$ and a' "'" ' ' If there was no $ in the text, one could do it more simply by packing the whole text into double quotes: perl -e "print '$ and a' " Have a nice day :) Thomas
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shell - escapes Die Optimisten <inform@die-optimisten.net> - 2016-05-10 11:40 +0200
bash Shell - escapes Die Optimisten <inform@die-optimisten.net> - 2016-05-10 11:40 +0200
Re: bash Shell - escapes <tomas@tuxteam.de> - 2016-05-10 12:20 +0200
Re: Shell - escapes "Thomas Schmitt" <scdbackup@gmx.net> - 2016-05-10 13:10 +0200
Re: Shell - escapes <tomas@tuxteam.de> - 2016-05-10 13:30 +0200
Re: Shell - escapes Mark Fletcher <mark27q1@gmail.com> - 2016-05-10 12:10 +0200
Re: Shell - escapes "Thomas Schmitt" <scdbackup@gmx.net> - 2016-05-10 12:50 +0200
Re: Shell - escapes Die Optimisten <inform@die-optimisten.net> - 2016-05-10 14:20 +0200
Re: Shell - escapes <tomas@tuxteam.de> - 2016-05-10 14:30 +0200
Re: Shell - escapes Mark Fletcher <mark27q1@gmail.com> - 2016-05-10 15:20 +0200
Re: Shell - escapes David Wright <deblis@lionunicorn.co.uk> - 2016-05-10 16:00 +0200
Re: Shell - escapes Mart van de Wege <mvdwege@gmail.com> - 2016-05-12 10:10 +0200
Re: Shell - escapes tomas@tuxteam.de - 2016-05-10 15:30 +0200
Re: Shell - escapes "Thomas Schmitt" <scdbackup@gmx.net> - 2016-05-10 16:20 +0200
Re: Shell - escapes David Wright <deblis@lionunicorn.co.uk> - 2016-05-10 16:30 +0200
Re: Shell - escapes "Thomas Schmitt" <scdbackup@gmx.net> - 2016-05-10 16:50 +0200
Re: Shell - escapes <tomas@tuxteam.de> - 2016-05-10 16:40 +0200
Re: Shell - escapes shawn wilson <ag4ve.us@gmail.com> - 2016-05-10 12:20 +0200
Re: Shell - escapes Frédéric Marchal <frederic.marchal@wowtechnology.com> - 2016-05-10 12:30 +0200
Re: Shell - escapes Andy Smith <andy@strugglers.net> - 2016-05-10 15:40 +0200
Re: Shell - escapes <tomas@tuxteam.de> - 2016-05-10 16:00 +0200
Re: Shell - escapes David Christensen <dpchrist@holgerdanske.com> - 2016-05-11 05:50 +0200
csiph-web