13 posts tagged with awk.
Displaying 1 through 13 of 13. Subscribe:

Parsing movie/TV scripts

I have several scripts for movies and TV shows which appear to be in a standard tab-delimited format. I would like to get each character's lines alone into a new separate text document (likely via a computer script). [more inside]
posted by antonymous on Jan 5, 2015 - 6 answers

Help Me Learn AWK

I'm good at Grep (aka pattern matching, aka regular expressions). Can you help me figure out the best way to learn AWK? [more inside]
posted by Quisp Lover on Mar 11, 2013 - 27 answers

Convert text with whitespace to csv

perl or sed or awk help for newbie [more inside]
posted by v-tach on Mar 20, 2012 - 26 answers

How do I use awk inside my Automator workflow?

The Mac OS X Automator tool lets me run a perl script as well shell scripts, but I'd like to use awk instead. How can I fit this into my workflow? Perl appears in the popup menu of possible shells for the script, but awk does not. [more inside]
posted by maniabug on Jan 9, 2011 - 4 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

Using awk to export many files from one text file

How can I use awk (or something better) to cut a big file into groups of files, based on the occurrence of a pattern? [more inside]
posted by Steve3 on Feb 12, 2010 - 10 answers

How do I increment an alphanumeric string using awk?

How do I increment an alphanumeric string using awk? [more inside]
posted by edverb on Feb 5, 2009 - 14 answers

Awk with spaces?

Help with awk - printing everything EXCEPT the first column? [more inside]
posted by Flunkie on Dec 1, 2007 - 7 answers

Address Parsing 101, please!!

ParseFilter: I have a CSV file full of leads I need to parse into a more, er, concise format. What would the hive mind recommend? [more inside]
posted by cdmwebs on Nov 3, 2007 - 23 answers

Help improve my scripting skills

I wrote a shell script for an acquaintance that renames Macs (OS 10.4) based on their existing names. It works well, but I'm convinced my code could be more efficient. Where can I make improvements? [more inside]
posted by pmbuko on Aug 29, 2007 - 11 answers

grep sed or awk me some values

I want grep (or sed or awk) to return a word between two "bookend" words. [more inside]
posted by Null Pointer and the Exceptions on Jan 10, 2007 - 14 answers

Filtering groups of records using awk?

How to remove groups of records from a text file using awk or similar in Unix based on a flag at the end of the record-groups? [more inside]
posted by misteraitch on Apr 23, 2006 - 27 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:


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