Join 3,523 readers in helping fund MetaFilter (Hide)

5 posts tagged with perl and grep. (View popular tags)
Displaying 1 through 5 of 5. Subscribe:

Using grep to extract x characters of text after a predictable pattern

I'm trying to work out how to use something like grep or sed or awk (or maybe even some Perl) to extract a string of characters which appears in a predictable place in a series of text files. Help/advice/tutorials very welcome! [more inside]
posted by infinitejones on Mar 15, 2013 - 8 answers

parse pix/asa logs

Trying to create a Perl or shell script to parse/convert Cisco PIX/ASA logs into a CSV format. Has anyone had any success with this? Since all messages aren't standard, I'm trying to think of the best way to approach this issue. Has anyone had any success, or have a good AWK, Grep, SED, or perl script that can get this done?
posted by fozzie33 on Dec 16, 2010 - 17 answers

Shell script handling CSV columns

I'm using a shell script to handle some excel docs by converting to csv and reformatting it a little bit. I'm having some difficulty going on with the next part of the script. Some help would be great. :) [more inside]
posted by fightoplankton on Jun 10, 2009 - 11 answers

Apache/GrepFilter: Number Four Son, He Never Calls

GrepFilter: How to pull the last 10 authusers from an Apache log file, without all the noise? [more inside]
posted by rokusan on Nov 4, 2007 - 10 answers

Using Grep within BBedit to change some data in tables.

I'm using Grep within BBedit 6.1.2 lite, in order to change some data in tables from "regular" time in the format: "0530PM" to military time: "1730"

Essentially, I am able to locate the data I want using:

(####)PM

Which, in the above example returns: "0530"

So here's the question: I want to treat that result as a number, and add 1200 to it to convert it to military time.

Is there a way to do this within BBedit using the replacement patterns, or do I have to go figure out how to write a perl/python/awk/applescript to accomplish this?
posted by mecran01 on Jan 6, 2005 - 10 answers

Page: 1