Re: system ("cd ..")
- From: cdevers@xxxxxxxxx (Chris Devers)
- Date: Tue, 30 Aug 2005 08:33:55 -0400 (EDT)
On Mon, 29 Aug 2005, Eliyah Kilada wrote:
> - I agree with [you] that a shell script is more appropriate, but how
> can I write regular expressions in this way ? ;-)
By typing them, naturally :-)
In shell scripts, grep, sed & awk are the common regex using tools;
depending on what you're doing, one or another might be the most useful
one to make use of in a script.
grep does basic regex pattern matching
sed is a Stream EDitor, and can do regex substitutions etc
awk is more complex, almost like a baby version of Perl, but weirder
For my needs, grep & sed are usually enough for most simple shell
scripts, and if I need to make it complex enough that I'm considering
using awk, I just write the whole thing in Perl instead. On the other
hand, a lot of people, eveen now, use awk all the time.
In any case, there are several useful ways to get regexes into your
shell scripts, should you have the need to do so.
--
Chris Devers
.
- References:
- RE: system ("cd ..")
- From: Bob Showalter
- Re: system ("cd ..")
- From: Eliyah Kilada
- Re: system ("cd ..")
- From: Jeff 'japhy' Pinyan
- Re: system ("cd ..")
- From: Eliyah Kilada
- RE: system ("cd ..")
- Prev by Date: Re: help me
- Next by Date: Re: encrypt the password stored in a file
- Previous by thread: Re: system ("cd ..")
- Next by thread: @INC
- Index(es):
Relevant Pages
|