G
gorda
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
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