using perl on the command line, like sed or awk
From: gorda (smith4894_at_excite.com)
Date: 10/20/03
- Next message: Jim Gibson: "Re: Pass Parameter to XSLT Using PERL"
- Previous message: Jim Gibson: "Re: Encryption Problem"
- Next in thread: Eric J. Roode: "Re: using perl on the command line, like sed or awk"
- Reply: Eric J. Roode: "Re: using perl on the command line, like sed or awk"
- Reply: Andrew Shitov: "Re: using perl on the command line, like sed or awk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Oct 2003 14:40:54 -0700
Hello,
Using sed or awk, I can quickly parse and perform operations on the
command line itself as in:
cat file | sed 's/cat/dog'
cat file | awk ' /cat/ {print "found the cat"} '
How can i do something like the above in perl on the command line
without having to write a script in a seperate file?
Thanks
-s
- Next message: Jim Gibson: "Re: Pass Parameter to XSLT Using PERL"
- Previous message: Jim Gibson: "Re: Encryption Problem"
- Next in thread: Eric J. Roode: "Re: using perl on the command line, like sed or awk"
- Reply: Eric J. Roode: "Re: using perl on the command line, like sed or awk"
- Reply: Andrew Shitov: "Re: using perl on the command line, like sed or awk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]