From: ichi@ihug.co.nz
To: Paul Kraus <pkraus@pelsupply.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Perl
Date: Thu, 05 Dec 2002 06:56:20 +0000 [thread overview]
Message-ID: <3DEEF894.77939240@ihug.co.nz> (raw)
In-Reply-To: 019001c29bac$8f711bf0$64fea8c0@pkrausxp
Paul Kraus wrote:
>
> How can I make this assignment in one statement.
> I know its going to be something easy.
> $path=$5;
> $path=~s/ /\\ /g;
I don't understand. Is this part of a bash script?
It looks like you a trying to assign the fifth parameter
(path=$5) to a variable named path (which BTW is not the
PATH) and then manipulate it in some way (something to do
with \ I think).
Perhaps this is some language that I am unfamiliar with?
If so, I apologize. However, if is bash, I suggest you
explain in words what you want to do, and I will try to
script it.
Cheers,
Steven
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2002-12-05 6:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-04 15:48 Perl Paul Kraus
2002-12-05 6:56 ` ichi [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-04 19:24 Perl Alan Womack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DEEF894.77939240@ihug.co.nz \
--to=ichi@ihug.co.nz \
--cc=linux-newbie@vger.kernel.org \
--cc=pkraus@pelsupply.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox