Re: Some bash questions :-)
- From: Robert Hull <Robert@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 17:05:26 +0100
On Wednesday 30 August 2006 11:26, composlinuxmisc
<altcomphardware@xxxxxxxxxxx> wrote in comp.os.linux.misc:
Robert Hull wrote:
On Wednesday 30 August 2006 00:13, composlinuxmisc
<altcomphardware@xxxxxxxxxxx> wrote in comp.os.linux.misc:
The bash command below is meant to firstly list all files with the[snip]
specified name; and then print a line containing -2718.
If I put the -2718 as "-2718" it still doesn't work (no terminated
signal, just Usage:...)
It should work if you escape the minus sign thus: '\-2718'
Yes, it does. Thanks. Goes to show there's usually more than one way
to do things in Linux. :-)
Indeed - I had forgotten the other way mentioned in this thread
What does the "\" symbol mean and how does it help?
In this context it is referred to as an escape character and tells the
software to treat the following character literally (i.e. do not try to
interpret the next character)
--
Robert HULL
Archival or publication of this article on any part of thisishull.net
is without consent and is in direct breach of the Data Protection Act
.
- References:
- Some bash questions :-)
- From: composlinuxmisc
- Re: Some bash questions :-)
- From: Robert Hull
- Re: Some bash questions :-)
- From: composlinuxmisc
- Some bash questions :-)
- Prev by Date: Scheduling Jobs - Last day of the month - HOWTO?
- Next by Date: Re: Scheduling Jobs - Last day of the month - HOWTO?
- Previous by thread: Re: Some bash questions :-)
- Next by thread: Re: Some bash questions :-)
- Index(es):
Relevant Pages
|