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]
perl or sed or awk help for newbie [more inside]
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]
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?
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]
How do I increment an alphanumeric string using awk? [more inside]
Help with awk - printing everything EXCEPT the first column? [more inside]
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]
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]
I want grep (or sed or awk) to return a word between two "bookend" words. [more inside]
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]
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?