Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #167652 > unrolled thread
| Started by | Die Optimisten <inform@die-optimisten.net> |
|---|---|
| First post | 2016-05-10 11:40 +0200 |
| Last post | 2016-05-11 05:50 +0200 |
| Articles | 2 on this page of 22 — 11 participants |
Back to article view | Back to linux.debian.user
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
Page 2 of 2 — ← Prev page 1 [2]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2016-05-10 16:00 +0200 |
| Message-ID | <rxgmB-3mZ-11@gated-at.bofh.it> |
| In reply to | #167674 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, May 10, 2016 at 01:36:22PM +0000, Andy Smith wrote:
> Hello,
>
> On Tue, May 10, 2016 at 11:18:06AM +0200, Die Optimisten wrote:
> > How can I escape a ' inside '...'
> > e.g. perl -e 'print '$ and a' ' # I don't want to use "
>
> You can't, so if it were me I would use one of perl's alternatives
> for single-quoted strings, such as:
>
> perl -e 'print q{$ and a} '
>
> http://perldoc.perl.org/perlop.html#Quote-and-Quote-like-Operators
"There Is More Than a Way To Do It" :-)
By the way, this is recommended reading (back to the shell and
especially bash):
http://wiki.bash-hackers.org/
Enjoy
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlcx538ACgkQBcgs9XrR2ka7GgCfd2N8PaoE2ng7i4hPuASpH+up
/6IAmwSHaxmQVI9f9s3DhJAmARPHoPVw
=k8A/
-----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2016-05-11 05:50 +0200 |
| Message-ID | <rxtjQ-8qN-1@gated-at.bofh.it> |
| In reply to | #167674 |
On 05/10/2016 06:36 AM, Andy Smith wrote:
> perl -e 'print q{$ and a} '
+1
David
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | linux.debian.user
csiph-web